----- Original Message ----- From: "sameer lele" <[EMAIL PROTECTED]>
> I'm developing a project which needs to read from external text files. I'm > using the fileio xtra to carry out the operations. > Every carraige return puts a blank line in the text cast member(i'm not > using field so i can avoid the square boxes denoting the carraige returns). > How do i avoid these extra blank lines in the member. Hmm, this is probably because of the different ways a carraige return can be encoded. It can be just a CR, LF, or CR+LF, CR+LF being the standard for DOS/Windows systems. CR is ASCII 13, and LF is ASCII 10, CR being the same as the RETURN constant. What you will probably have to do, to get the correct result for either text members *or* fields, is to strip out the extra LF characters. Just scan the input stream for charToNum(10), and remove them all. These characters are most likely what are causing both the square boxes and the extra blank lines. - Robert [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
