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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

appending to a file 1

Status
Not open for further replies.

Smithsco

Technical User
Mar 30, 2003
89
AU
i'm trying to edit a file, however each time I open the file it writes over the existing data. is there any way to start writing to the file at the end of the file?
 
No. You will have to read the contents of the file into a variable or array, then write that back to a file with the append text at the end.

BDC.
 
Use the constant ForAppending (ie 8) instead of ForWriting (ie 2) when you open the text file.

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top