- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Saving an xls file in csv format "Looks" like it only writes a text file with comma delimited fields.
However, (at least using cvf 6.6) when this file is opened and read, as with:
character(80)::line
open(1,file='whatever.csv')
read(1,*)line
given that using a text editor that the line is somehting like
ABC,12345
on debug of the above, ONLY the first token is stored in the variable Line.
Arethere hidden characters in csv files which trick a simple read? or...?
Any hints will be appreciated.
Tim
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Don't use list-directed input for this. An unquoted character value will end at the first delimiter - the comma in this case. Use (A) format instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes I just discoverd that.
I would swear that I've done this zillions of times and it was not a problem.
This is what heppens when scatterbrain people program in many different languages. Can't keep any of it straight!!
Thanks.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page