- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
my fortran program stops with no run-time error while reading a file. the read is in a do-loop so I open the txt file-read-close the fileat every iteration while in the do. It does it for approximately 75000 times, and then if certain conditions are true, it starts again. The program stops after the 17000 time with no appartent reason (it should stop after the 75000th time). I have been programming on a daily basis for the past 5 five years, so I promise I have tried a lot of things.
The last thing I can think of is that there might be alimit on the txt file, or on the amount of times that it can be opened and closed?It doesn't make much sense but....Can I track the mistake somehow if I have no run-time error?
PS. there is no lnk warning either.
Thanks in advanced.
Dan
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why don't you leave the file open and do a REWIND to reread it instead? You'll save a lot of work on behalf of the I/O system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The compiler is Compaq Visual Fortran Version 6.6.
Thanks
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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