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

Newline character

Status
Not open for further replies.

dwu1998

Programmer
Jan 17, 2001
22
US
If I use Notepad to open a text file written by a Java program, the new line character displays as a special char rather than actually breaks to a new line. If I use Wordpad or read the file in Unix, it displays normally - it breaks to a new line. Anything I can do to resolve this?

Thanks!
 
I have seen some windows text editors that need the '\r' return control charactor added. I believe Notepad is looking for \r\n instead of \n alone.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top