|
-
Jun 19th, 2009, 11:11 PM
#1
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.
-
Jun 19th, 2009, 11:42 PM
#2
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.
-
Jun 20th, 2009, 09:12 AM
#3
Re: problem with eof...
 Originally Posted by DigiRev
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|