Hello,
I am trying to write a file as direct access formatted file: The code for this is:
The output file however contains all the lines written by the above code in a single line(the write command is called multiple times). I have also tried several formats such as:
But nothing works. Can someone help me in inserting a new line after each write operation ?? Thanks.
Nikhil
I am trying to write a file as direct access formatted file: The code for this is:
Code:
open(unit=9,file='chk.dat',form='formatted',
+ access='DIRECT',RECL=200)
write(9,326,REC=NF), (X(I),I=1,11),F,NF
326 format(11f15.6,1PD18.10,i8)
The output file however contains all the lines written by the above code in a single line(the write command is called multiple times). I have also tried several formats such as:
Code:
format(/,11f15.6,1PD18.10,i8)
format(11f15.6,1PD18.10,i8,/)
format(11f15.6,1PD18.10,i8,2A1)
Nikhil