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

ho do I read a prev. created text file

Status
Not open for further replies.

malagon

Programmer
Jan 30, 2003
1
0
0
MX
could you tell me please how can I read a text fom a .txt file with carriage returns, I can read all the text on it but if I've written in one single row only! and this is so uncomfortable 'cause you can't read what you write. If I put a return the program only gets the first row until the return.
 
if you continue to read from the file, it should treat the line feed char (enter) the same as a tab or space, and continue to read regardless of line

what are you using to read from the file?...i only know ifstream from fstream.h, it seems to work fine with multiple lines
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top