Hello,
I'm writing a sequential file that has a text on the 11th line (before that there're only line brakes). The thing is that after I write the file I'm loosing the ten first characters that I had on the original text. How can I write a direct access file and keep untouchable the original...
After changing the format and the record lenght as sugested. My output was the following.
0 1 2 3 4 5 6 7 8 9
I'm using g95 to compile my program.
Do you have any other suggestions to my problem?
Here is my code:
PROGRAM TEST
OPEN (UNIT=10, FILE='TEST.TXT'...
Hello,
How do I create a new line in a direct access file?
I have this code right below. Instead of writing the records all on the same line I'd like to write each record in a different line.
PROGRAM TEST
OPEN (UNIT=10, FILE='TEST.TXT', FORM='FORMATTED', ACCESS='DIRECT'...
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.