- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Am trying to read some TAB delimited input files (originally came from Excel) into a simple console based program without much luck. Searching the Forums here and the wider internet has not found anything, so any help as how to read the TAB characters would be greatly appreciated.
Thanks
Jon
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
just read the file intocharacter variables and parse them, creating a new variable, line, element (whatever is appropriate) whenever you find a TAB character that is CHR(9)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many thanks
Regards
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I thinka free format read will interpret tabs as spaces, at least for numeric data.
For example:
read(1,*) a, b, c
where the file contains "10.020.030.0" where the separators are tabs, not spaces.
You might want to experiment that this works in your case.

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