Hi Peter, The easist is probably to do a search and replace on your text file (using Ultraedit or the like) and replace all CR with another character, which you later can identify and replace back again after having read the text file with mapbasic. But don't replace CR+LF !
But basically I would say Mapbasic behaves as it should since unix formatted files can also be handled correctly when CR on it's own is seen as an end-of-line. So, the problem is in your data as CR and LF should only be used for end-of-line markers and nothing else. Kind regards Uffe Kousgaard www.routeware.dk ----- Original Message ----- From: "Peter Zyczynski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 22, 2002 9:00 AM Subject: MI-L MBX - text file reading > Hi all, > > Can any of you budding programmers out there tell me if its > possible to read a text file one character at a time, as > opposed to a whole line at a time? > > My text file has occurrences of the carriage return > character (which doesn't necessarily represent an end of > line), as well as carriage accompanied by a line feed > character (these represent end of line) > > I need to test for a carriage return with an accompanying > line feed. MBX thinks that a single CR is end of line - my > nemesis! > > Thanks, > > Peter Zyczynski > Insight.GIS > Australia > Ph: (03) 6244-7344 > Fax: (03) 6244-7028 > [EMAIL PROTECTED] --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
