Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding to a text file 1

Status
Not open for further replies.

JohnStep

Programmer
Apr 19, 2000
190
US
I have a strange dilemma. I want to spool information to a text file. Easy enough, but the problem I am having is that the file# needs to close after every addition. When I close the file# it restarts the pointer to the very start erasing the last line it added to the file. I tried the EOF statement but it don't seem to do the trick. Does anyone have any ideas on how to accomplish this.

Thanks in advance,

John Stephens
 
Hi John,

Use Append to open the file e.g.

Open strFileName For Append As #1

This will add to the bottom

Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top