Results 1 to 9 of 9

Thread: **RESOLVED** Line Input but no carriage returns in the file

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2000
    Posts
    350

    Question **RESOLVED** Line Input but no carriage returns in the file

    I've got a file which I want to read in line by line, and for that I would normally use Line Input. But the file's lines are not separated by CR or CRLF which is what MSDN says Line Input needs. Instead, the first and second lines are separated by only a LF, all subsequent lines are separated by a LFLF pair. (I know this from looking at the data in a hex editor, where I see the x'0A' code which is chr10 or LF. There are no x'0D' chr13 CRs in the file at all)

    Indeed when I use Line Edit in a Do..Loop and step thru' the program I can see it only goes thru' the loop once and thus treats the whole file as one line.

    I had thought of using a stream edit approach to put the CRs in, but that might be unnecessary if anyone has a better idea?

    Thanks...
    Last edited by Jim Brown; Aug 2nd, 2002 at 02:59 AM.
    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width