Microsoft KB Archive/32671

Appending Files in FORTRAN-80

PSS ID Number: Q32671 Article last modified on 07-18-1988

3.36 3.37 3.42 3.43 3.44 CP/M-80

Summary: Fortran-80 does not include an option for appending to sequential files. When performing sequential I/O, any existing file of the same name as the file being written to will be erased without notice. To effectively append a sequential file, do the following: 1. Open a new file. 2. Copy the contents of the old file. 3. Put in the new data. Direct output does allow modifications and appends to files.