eol characters
Hi, I tried to find this, but couldn't. In http://software-lab.de/doc/refL.html#line, it is said that End of line is recognized as linefeed (hex 0A), carriage return (hex 0D), or the combination of both. But sometimes, at least in other text processing languages (eg awk), it's very convenient to have a different character as the marker for end of line. Did I miss something in the reference or is it not possible to assume a different character from those ones as eol? Luis PS. A beginner trying to read a xml text file and to do something useful with it. -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: eol characters
Hi Luis, In http://software-lab.de/doc/refL.html#line, it is said that End of line is recognized as linefeed (hex 0A), carriage return (hex 0D), or the combination of both. Yes, this behavior is hard-coded into the 'line' function. Did I miss something in the reference or is it not possible to assume a different character from those ones as eol? You could use 'till'. For example, (till ^J) will return the rest of the line (^J is 0A in hexadecimal). This is, on a Unix system, equivalent to (line), and (till ^J T) is the same as (line T). ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe