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@p com2.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.
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@p
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 !