Results 1 to 12 of 12

Thread: problem with eof...

Hybrid View

  1. #1
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: problem with eof...

    to prevent commas from screwing your logic up, place all your data in quotes when you save it to the file.
    print #1, chr(34) + data + chr(34)
    the quotes won't show up when you read the data. Note that this only works with string data.

  2. #2
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: problem with eof...

    I think the Write statement prints with quotes, but I could be wrong.

    I mainly only do binary reading, and if not, it's usually Line Input or reading the entire file at once.

  3. #3
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: problem with eof...

    Quote Originally Posted by DigiRev View Post
    I think the Write statement prints with quotes, but I could be wrong.

    I mainly only do binary reading, and if not, it's usually Line Input or reading the entire file at once.
    possibly. I've never used it. I had this issue with a custom database that had to fit on a floppy disk. I put it in csv format and it was causing issue with the description of some of the vehicles in it. I had originally just stripped out all the commas but as i was transferring jobs i had to future-proof it against new users who might add a new one. If i'm not mistaken (and i may be) there's another format where the columns are separated by tabs and it doesn't have this issue at all.

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