Rumble Posted December 17, 2006 Share Posted December 17, 2006 hiThis is weird,everywhere I looked, it sais that inorder to [b]save to a text file[/b], I'l have to add a [b]"\n"[/b] at the end of the line.but after I do it, when I open the text file in notepad, all the lines I have saved to it appear in one line.and what seperates between the lines is an invisible charachter.any ideas?thank you. Quote Link to comment Share on other sites More sharing options...
zq29 Posted December 17, 2006 Share Posted December 17, 2006 Different operating system families have different line-ending conventions. When you write a text file and want to insert a line break, you need to use the correct line-ending character(s) for your operating system. Unix based systems use \n as the line ending character, Windows based systems use \r\n as the line ending characters and Macintosh based systems use \r as the line ending character. Quote Link to comment Share on other sites More sharing options...
Rumble Posted December 17, 2006 Author Share Posted December 17, 2006 This was the fastest reply I have ever received in my life.WOW(I beleive I tried LF CR, but not the other way around)Thanx, I'l give it a try Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.