![]() ![]() Often these files have neither line terminators nor fixed-length records and their structure is often quite complex. If, on the other hand, you want to use Fortran to read a file generated by some instrument, or a file exported from another software package such as a spreadsheet or database system, then record-based I/O is a serious obstacle. ![]() Line terminators depend upon the operating system, they may be line-feeds, or carriage-returns, or possibly both, but with record-based I/O you can ignore such differences and simply read or write whole lines. This was fine if you were reading or writing a file where all records had the same length, or alternatively a text file, where each line up to the line terminator counted as a record whatever its length. When Fortan was invented in 1957 its I/O facilities were entirely record-based. Stream Input/Output in Fortran Background - Record-based versus Stream I/O ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |