I have opened a text file
i want to write names of users line by line.(in the next line)
If i use "\n" to give line feed . A box appears intead of newline in the text file
You might try "\r\n" ... \n is a UNIX newline, you must be reading the file with windows ??
are you ftping the file in ascii or binary. If you ftp the file in ascii then it will convert tyhe line breaks for you.
I tried it but still i get box only
Originally posted by vijayanand I tried it but still i get box only
To which suggestion does "it" refer to?
Originally posted by Weedpacket To which suggestion does "it" refer to?
ya know, that one...
My suggested solution would be to use a real text editor 🙂
Originally posted by Weedpacket My suggested solution would be to use a real text editor 🙂
"ed(1) is the standard text editor"
😃
html-kit and code-whiz both determine the type of line ending used in the file and go with that. It's kind of cool and code whiz is also a hex editor.