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

What is the equivalent of endl with TFileStream in Borland ??

Status
Not open for further replies.

BigValerie

Programmer
Jul 10, 2002
6
DE
I would like to go to the next line in a text file that I write with the component TFileStream of Borland C++ Builder 4. I use the method Position for horizontal postition but I don't know how a can go to the next line.
Can someone help me ?
 
Streams have only one dimentions - length. If you are writing to stream and want to add a line break then just write symbols #10 and #13 to your stream at the end of each line. If you want to read lines, then eveything get a little bit more complicated.

--- markus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top