3.3: Text Editor
- Page ID
- 54244
The first step is to create a text file named hw.f95
using a text editor. It is useful to place programs and various files into a working directory. This way the files can be easily found and not confused with other, unrelated files and data. The hw.f95
file should be created and placed in a user created working directory. For this example, a working directory named 'fortran' was created and the file is then created and edited in that location.
A file name is typically comprised of two parts; a name and an extension. In this example, the file name is hw
and the extension is .f95
. The usual extension for this and future programs will be .f95
which indicates that the file is a Fortran 95/2003/2008 source file.
The following examples will use the hw.f95
file name. If desired, a different file name may be used. However, the name will need to be adjusted for the compiler and execute steps in the following sections.