Fortran Output to Separate Files
Actually Fortran has similar rules and command for Opening Files
and assigning unit numbers, but I have found it simplest to just
reply on the default associations.
- write (10,*) x,y,i
- Will having the Unix system on Rohan at SDSU create (or append
if a file already existings) a file with
the name fort.10 and the output, free format since the *
was indicated in the format specifier, written.
- write (12,100) x,y,i
- 100 format (' x = `, 1pe12.5,' y = ', 1pe12.5,' i = ',i7)
- Will create (or append) the formated output above.
Return to CS 575 Lab 2 Report and File I/O