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

Using a Tilde "~" as end of line character

Status
Not open for further replies.

BobWaterhouse

Programmer
Dec 11, 2002
27
0
0
US
When reading a file using C++ we are having to "unwrap" the data because the end of the record/line is determined by a tilde "~" as opposed to the usual New Line character/s. Is there a way to use an fgets type command where the tilde is used as the new line identifier?
 
C++ getline() allows you to choose the delimiter.


--
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top