1. Re: Mac text files and gets()
- Posted by Bernie Ryan <xotron at bluefrog.?o?> Sep 14, 2007
- 480 views
Derek Parnell wrote: > > I think that if a text file, being read in any environment, is found to > contain > a carriage-return in isolation, it is a reasonable assumption that it is > intended > by the file's creator that it represents the end of a text line. Under what > circumstances would a '\r' by itself, in a text file, literally only means > "move > the cursor to the begining of the current display line" (which is what > carriage > return means). Derek: What if you had a text file for a printer that had CR, Vt, FF, etc. embedded in it. Then what would happen ? Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan