- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just red the conversation about the option 'recordtype' in the open statement to read dosfiles (CR-LF)in UNIX. When I used this in my program, I got the message that this item is not allowed for this I/O statement. After some readingin the manual about this topic, I found out that this is a fortran95 topic and we are working with fortran90. Is there a tool in fortran90 that has the same properties??
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
STREAM_LF is an f2003 feature. If you want to read CR_LF files with all older compilers, you may have to make a copy with CR filtered out, before OPENing it. For example, you might run the common dos2unix utility from SYSTEM(). So, no, there was no fully standard way to do this in the past.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Intel Fortran supports FORM='BINARY' which allows you to read an arbitrary stream of bytes using unformatted I/O.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ThanX tim18!
kristien
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