Fortran I/O

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!


  • WRITE(unit num, format num) outputs the data after the brackets in a new line.
  • READ(unit num, format num) inputs to the variable after the brackets.
  • OPEN(unit num, FILE=file) opens a file. (There are more options for opening files, but they are not important for I/O.
  • CLOSE(unit num) closes a file.

Got any Fortran Question?