Insights Blog
-- Browse All Articles --
Physics Articles
Physics Tutorials
Physics Guides
Physics FAQ
Math Articles
Math Tutorials
Math Guides
Math FAQ
Education Articles
Education Guides
Bio/Chem Articles
Technology Guides
Computer Science Tutorials
Forums
Chemistry
Biology and Medical
Earth Sciences
Computer Science
Computing and Technology
DIY Projects
Trending
Featured Threads
Log in
Register
What's new
Search
Search
Search titles only
By:
Chemistry
Biology and Medical
Earth Sciences
Computer Science
Computing and Technology
DIY Projects
Menu
Log in
Register
Navigation
More options
Contact us
Close Menu
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Other Sciences
Programming and Computer Science
Runtime error while reading file in fortran90
Reply to thread
Message
[QUOTE="jtbell, post: 6155990, member: 20524"] Use an IOSTAT specifier in your READ statement to tell the program what to do when it reaches the end of file. [URL unfurl="true"]https://pages.mtu.edu/~shene/COURSES/cs201/NOTES/chap04/iostatus.html[/URL] Aha, now I see something else which is likely your real problem. You're reading only one item at a time. Each READ statement reads a whole line at once, so this requires that each item be on a separate line. If each line of the file contains a whole row of the matrix, the READ statement should read all of those items at once. (it looks like BvU wrote his post while I was adding the "Aha...".) [/QUOTE]
Insert quotes…
Post reply
Forums
Other Sciences
Programming and Computer Science
Runtime error while reading file in fortran90
Back
Top