NJudson
Who farted?
- Local time
- Yesterday, 23:30
- Joined
- Feb 14, 2002
- Messages
- 297
I'm writing code to access a text file and my code is kinda like this
Open InputFile1 For Input Access Read As #1
Open InputFile2 For Input Access Read As #2
Open OutputFile For Output As #3
Do Until EOF(1)
....(code)
Do Until EOF(2)
Loop
Loop
--now I would like to place in the line above "Do Until EOF(2)" a statement that will bring me to the top of InputFile2. I tried BOF(2) but there apparently is no such thing as that.
If "End Of File on InputFile1" = EOF(1)
then what is the correct syntax for
"Beginning Of File on InputFile2" = ????
I hope I explained what I'm looking for ok. Thanks for any help.
Open InputFile1 For Input Access Read As #1
Open InputFile2 For Input Access Read As #2
Open OutputFile For Output As #3
Do Until EOF(1)
....(code)
Do Until EOF(2)
Loop
Loop
--now I would like to place in the line above "Do Until EOF(2)" a statement that will bring me to the top of InputFile2. I tried BOF(2) but there apparently is no such thing as that.
If "End Of File on InputFile1" = EOF(1)
then what is the correct syntax for
"Beginning Of File on InputFile2" = ????
I hope I explained what I'm looking for ok. Thanks for any help.