Link to home
Start Free TrialLog in
Avatar of fatalk1ll3r
fatalk1ll3r

asked on

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.
Avatar of aelatik
aelatik
Flag of Netherlands image

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 !
ASKER CERTIFIED SOLUTION
Avatar of aelatik
aelatik
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial