PSS ID Number: 112344
Article Last Modified on 3/24/2000
Compile options: None
open (1,file='newfile.dat',form='unformatted')
do j=1,2
write(1) j
enddo
close(1)
open (1,file='newfile.dat',form='unformatted',access='append')
do j=1,2
write(1) j
enddo
close(1) ! F6422 here
end
Obtain the functionality of ACCESS='APPEND' by reading to the end of the
file before writing the appended records. This is shown in the sample
below:
Compile options: None
open (1,file='newfile.dat',form='unformatted')
do j=1,2
write(1) j
enddo
close(1)
open (1,file='newfile.dat',form='unformatted')
do while (.not.EOF(1))
read(1) j ! READ to end of file
enddo
do j=1,2
write(1) j ! APPEND additional information
enddo
close(1)
end
Additional query words: 1.00 1.00a buglist1.00 fixlist1.00a
Keywords: kbbug KB112344
Technology: kbAudDeveloper kbFORTRANPower100DOS kbFortranSearch kbZNotKeyword3