- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Suppose I open a file, read a line or two, and then close it. Is that file automatically rewound? In others words, if I open it again later in the same program, will the file be repositioned to the beginning?
Thanks.
Thanks.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Position is a property of the file connection, not the file itself. Once you close the file, the connection goes away. Upon reopening, the position is the default, based on what you specified with POSITION=, if any. Note that the default is 'ASIS', which for Compaq Fortran is the same as 'REWIND'.
Steve
Steve
![](/skins/images/D2683F18326913BBA0436CB7114DD569/responsive_peak/images/icon_anonymous_message.png)
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