reidarjorgensen
IS-IT--Management
I am reading a comma-delimited file that was exported from Excel. One of the columns has embedded Line Feeds (x'0a'), and when I read it in with VBScript, the text in that column is, naturally, broken into separate lines where the Line Feed character is.
The end of the record has, as you'd expect, a CRLF - x'0d0a'.
So my question: Is there a way to read a line of text, recognising the CRLF, but ignoring the lone LF? I want the entire record, which started life as a row in a spreadsheet, to be read as a single record, not broken up.
When I open the file in Notepad, it ignores the LF (It's still there, as a little square character, but the line is not broken.). Is there some nifty VBscript option or method that can do this?
The end of the record has, as you'd expect, a CRLF - x'0d0a'.
So my question: Is there a way to read a line of text, recognising the CRLF, but ignoring the lone LF? I want the entire record, which started life as a row in a spreadsheet, to be read as a single record, not broken up.
When I open the file in Notepad, it ignores the LF (It's still there, as a little square character, but the line is not broken.). Is there some nifty VBscript option or method that can do this?