.FOR File Extension
Fortran Source Code File
Developer | ISO/IEC |
Popularity |
3.5 | 6 Votes |
What is a FOR file?
A FOR file contains source code written in Fortran programming languages, such as Fortran 77 (F77), often used for scientific and numerical computations. It typically stores F77 language in a fixed-form layout inherited from 80-column punched cards early computer developers used to store programs. Users can open and edit FOR files with a text editor or IDE that provides syntax highlighting.
More Information
IBM (specifically employee John Backus) initially developed the FORmula TRANslation (Fortran) language and released it in 1957. It is a general-purpose programming language often used for performing scientific and numerical computations. For example, developers may write code in Fortran and then compile it to build a program that computes numerical data to predict weather systems.
Various versions have been released since 1957, with numbers representing the years they were proposed (e.g., F77 was proposed in 1977). Notably, F77 includes support for structured programming and character-based data, while the original Fortran language did not.
Most developers save their F77 source code as FOR or .F files, which are easily recognizable as Fortran-based source code files. However, some save their code in .F77 files to denote that the files contain F77 source code specifically and not code written using some other Fortran variant. Later versions of Fortran, such as Fortran 90 or Fortran 2003 (that support free-form Fortran source code), are typically saved as .F90 and .F2K files.
NOTE: The International Organization for Standardization (ISO) and the International Electrotechnical Commission (IEC) are currently developing Fortran.
How to open a FOR file
You can open FOR files with any text or source code editor. For example, you can open FOR files with plain text editors like Microsoft Notepad in Windows, Apple TextEdit in macOS, or gedit in Linux.
However, source code editors, such as Microsoft Visual Studio Code (cross-platform) and MacroMates TextMate (cross-platform), contain helpful tools that make reading and editing FOR files easier.