Geting the refreshed version of a file

Hi All.

First, sorry for my bad english.

How I can get the refreshed version of a file ?

I'm running the sqlldr command from oracle client app to insert data into my database.

I have a batch file that has the following code:

sqlldr userid=comuser/eqfpcom08@pcom2.world control=\dbm\ldr\prd.ldr log=\dbm\log\prd.log

then I execute the shell visual basic command:

shell "batchfile.bat > output.txt"

the sqlldr updates the file when ir runs.

With sqlldr running I goto the windows explorer, I open the file and I can see the output.txt contents.

But if in my code i make this:

Open "output.txt" for input access read as #1
line input #1, strString

strstring will be "".

Cand someone help me ?

Thx in advance.
LVL 1
fatalk1ll3rAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

aelatikCommented:
Try this instead :

Dim strstring As String
    strstring = FileLen("output.txt")
Open "output.txt" For Binary Access Read As #1
    Get #1, 1, strstring
Close #1

note : strstring will contain the entire file !
0
aelatikCommented:
Oops, forgot to define SPACE.

Dim strstring As String
    strstring = Space(FileLen("output.txt"))
Open "output.txt" For Binary Access Read As #1
    Get #1, 1, strstring
Close #1
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.