Hi ... Reginald Neale wrote: > ... > requiring each line to end with 0Ah and 0Dh (CR & LF). This, apparently, is > how UNIX normally treats a text file. But other platforms typically use > just one of the control characters for ending a line. > > Is there any way to force MPLAB's text editor to accept files created with > other platforms, short of transcribing them? I notice there is an option > for special treatment of control-Z, but don't understand why that would be > necessary. > > Am I missing something simple here? I Read The Friendly Manual, the > sections on File Modes and Templates, but don't see the answer. > ... I think you figured it out exactly the oposite way. In UNIX systems we have only one character for ending a line, know as NL (newline) and coded as 0Ah; also we don't use any special character to mark the end of a file. In fact MS-DOS dos use the sequence CR-LF (0Dh 0Ah) to mark the EOL and is very common to see a control-Z beeing used as the last character of a file (EOF), in special with plaintext files (.TXT). This might have been inherited from CP/M (DR) but I'm not sure anymore, it had been a long time since the days of TRS-80, CP/M and 8" floppies. So, it seems natural that beeing a PC based platform MPLAB expects CR-LF terminated lines. You have to be extra carefull when transfering text files bettwen platforms, because sometimes the OS tools do make changes on text files. For instance 'doscp' in SCO Unix does convert NL to CR-LF and vice-versa during the copy; the same probably happens whit other platforms. In this cases you have to check if there is a switch to tell the command to trreat the file as binary wich normally disables any translation. best regards Jorge F