[tab]On Unix, all text files end in a line feed. In DOS/Windows, text files end in a carriage return and a line feed. When you transfer text files from Unix to DOS/Windows and are using FTP, you
must use FTP's
ascii option. This will automatically change the LF to CR/LF when going from Unix to DOS/Windows and change the CR/LF to LF when going back. If you use the
binary mode, no change will take place.
[tab]This is also why you want to use the
binary mode when transferring programs. If you try to use
ascii with programs, the LF character become CR/LF or vica versa and the program doesn't work. Some FTP programs look at the first few characters of the file to determine is the file needs binary or ascii mode but this is not infalliable.
[tab]Seems like everbody has their favorite editor so I don't want to start a "religious" editor war but I really like the Multi-Edit editor. It integrates directly into BCB and Delphi and can look at files in Unix, hex, or DOS mode. You can use it with Pascal, BASIC, VB, C/C++, Java, text, binary, etc. files. I like the ablility to edit hex files as well as ascii files. I've used it since the last DOS version. I've never used EDIT, Notepad, Wordpad, etc. after using Multi-Edit. I call it from BCB whenever I edit programs I write. Can't live without it. Oh, and you can call the compiler directly from Multi-Edit. See
for more information.
James P. Cottingham