![]() ![]() ![]() Several files can be open at once, but each must have aĭifferent number. ![]() Open (unit = 24, file = "c:\\fortran\\data\\divisors.dat")įortran uses the unit number to access the file with later read and Open (unit = 5, file = "h:\\results\\primes") 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 files - bothįor input and output - is a more leisurely and less error-prone approach. Too much screen output has similar consequences. Keyboard input during the run of a program leads to mistakes and tedium, while Storing data - especially when large amounts of data are involved. It is convenient in a Fortran program to use files for accessing or ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |