program somename
implicit none
!Variable / Constant Declarations
!executable statements
end
!--------------------------------
subroutine subname(parameters)
implicit none
....
end
!--------------------------------
type function name (parameters)
implicit none
....
end
format
statement to use.
format statement must contain an edit descriptor
for each written or read value.
A edit descriptor,
entered strings must be surrounded by single quotes.
OPEN statement.
OPEN (file='filename', unit=n) to associate the filename
with the unit number. You can either read or write to a file. Note
that if you open a file intending to write on it and it already exists,
it will be deleted and re-created; i.e. you'll loose its old data.
CLOSE (n) to remove the association created by
open
REWIND (n) retuirn the file pointer to the beginning of
the file. Useful for reading the fille more than once (faster than
closing and re-openning it).