- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry if this is a trivial question:
How do I read a long line (>132 characters) into a character*512 variable?
I seem to remember opening the file with recl=512 (say), did the trick, but is not working for me with cvf 6.6a.
BTW, I am using
CHARACTER*512 BUF
READ(UNIT,'(A)' ) BUF
Thanks,
Gabriel
How do I read a long line (>132 characters) into a character*512 variable?
I seem to remember opening the file with recl=512 (say), did the trick, but is not working for me with cvf 6.6a.
BTW, I am using
CHARACTER*512 BUF
READ(UNIT,'(A)' ) BUF
Thanks,
Gabriel
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Should work without RECL. What does your OPEN statement look like and what sort of error/results are you seeing?
James
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Never mind! the problem was in another program (not in the one I was looking at) and it was trivial.
Gabriel
Gabriel

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