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

streamwriter.write at a specific point

Status
Not open for further replies.

jonnyknowsbest

Technical User
Feb 3, 2004
163
GB
How do i go about using stream writer and the write function to open a text file and put text in a specific place in the text file?
 
You only have two options for writing to a file afaik: either append to the end of the file or overwrite it. In your case you'd probably have to read all the contents of the file, insert the data you want where you want it and then (over)write it all back into the file.

Regards, Ruffnekk
---
Is it my imagination or do buffalo wings taste just like chicken?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top