- Joined
- Nov 27, 2006
- Messages
- 440
- Reaction score
- 52
- Points
- 28
- Your Mac's Specs
- Power Mac G5 Dual 1.8 GHz
I know there aren't 2 types of TXT files, one for OS X, one for Windows.
I know there's only one type of TXT.
However, there is one little but quite significant difference between plain text files made in the two OSs:
In Windows, line breaks are \r\n
In OS X, they're \n
As a result,
while TXT files created in Windows will display correctly in OS X,
TXT files created in OS X will be missing all the line breaks when opened in Windows.
(Basically, all the text is displayed on 1 line.)
So does anyone know of a way to convert all the \n to \r\n in a TXT?
note:
I am aware of pseudo-solutions, such as using other formats instead (such as DOC),
which display the line breaks correctly in both OSs,
but still, I'd rather be able to use TXT files between the 2 OSs.
I know there's only one type of TXT.
However, there is one little but quite significant difference between plain text files made in the two OSs:
In Windows, line breaks are \r\n
In OS X, they're \n
As a result,
while TXT files created in Windows will display correctly in OS X,
TXT files created in OS X will be missing all the line breaks when opened in Windows.
(Basically, all the text is displayed on 1 line.)
So does anyone know of a way to convert all the \n to \r\n in a TXT?
note:
I am aware of pseudo-solutions, such as using other formats instead (such as DOC),
which display the line breaks correctly in both OSs,
but still, I'd rather be able to use TXT files between the 2 OSs.