[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Saving text file



At 15:38 1998-09-03 +0200, Matt Kaminer wrote:
>When I save a file in linux and view it in DOS it appears on one line (the
>endline thingie Ctrl-whatever)
>
>how do i convert that to read in dos so when i view the txt file in
>notepad it doesnt come up all screwy!

Unix/Linux stores text files with a line feed (LF) terminating each line of
text. DOS machines use a line feed and a carriage return (CRLF). Mac's use
a carriage return (CR).

 The best way is to use an editor that understands LF as end-of-line. I use
Programmer's File Editor <http://www.lanc.ac.uk/people/cpaap/pfe/>. It's
the best freeware editor I've seen for MS Windows 16/32 bit platforms.
Another solution is to transfer files via FTP using ASCII mode. This will
take care of the translation transparently.


 Tony
--
Anthony E. Greene <agreene pobox com>
Homepage & PGPKey: <http://www.pobox.com/~agreene/>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]