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

Write to File (Multiline)

Status
Not open for further replies.

DJSpidy

Programmer
Jul 14, 2001
9
CA
How do you write to a file which already has some values stored on it.

so that for example the first two lines have info on them and now I want to re-open the file and write on the third line.

Open CurDir + "/test.txt" For Output As #1
Print #1, (variable)
Close #1

this line will erase whatever is already in the file....
HELP PLZ.. =)
 
One more question..
say I want to do it the opposite way. Input from file but all lines.

For example.. I have a multiline enabled textbox and now I want to input contents from a file.

probably something so basic again.. =)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top