The rec specifier is required for direct access data transfer, which is required for reading and writing a binary file correctly. Unfortunately an END tag is not allowed with a rec specifier.
Hi xwb. I have tried using the 'end = ...' before, but when I try compiling the program I get this error message:
read(4, rec=i, end = 200) a
1
Error: REC tag at (1) is incompatible with END tag
I am using the G95 compiler on Windows 2000.
I have been trying to make a program that copies binary files. I have used autocad .dwg files.
When I open the binary files in a text editor and compare them to the originals they are identical, EXCEPT for a few symbols on the last line. Could this be because the last record is not getting...
Thank you very much, gullipe! It works as it should now.
I have to ask you what the meaning of '(a)' is in the following line:
----------------------
read(4,'(a)',end=10) a
----------------------
I think it is some kind of formatting, but I haven't studied that very much yet.
Hello
I am learning Fortran and I am currently trying to write a program that reads a text-file and prints it on the screen. The problem I am having is that all blank lines are skipped.
I get this on the screen:
****.123
******.abc
****.txt
Instead of this:
****.123
******.abc
****.txt...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.