

Open (unit = 5, file = "h:\\results\\primes")įortran uses the unit number to access the file with later read and Used to refer to the file, and instead of name you insert the name of theįile. In place of number you insert a positive integer (but not 6) to be

Used to open files - that is, it makes files available so that Fortran can read Putting data intoįiles - both for input and output - is a more leisurely and less error-prone Tedium, while too much screen output has similar consequences. Too much keyboard input during the run of a program leads to mistakes and Sometimes it is convenient in a Fortran program to use files forĪccessing or storing data - especially when large amounts of data are involved. Fortran Lesson 7 FORTRAN LESSON 7 Lesson Topics
