I typed the source code in WordPad and saved it as addition.f90, but, unfortunately, the only options Windows provides are text files, rtf's, and so forth.
I am using the G95 compiler for Windows.
I typed the source code in WordPad and saved it as addition.f90, but, unfortunately, the only options Windows provides are text files, rtf's, and so forth.
I am using the G95 compiler for Windows.
I suggest you use a decent text editor instead. Have a look at notepad++, VIM, GNU Emacs or similar.
To rename a file in Windows you either use the command prompt:
rename file.f90.rtf file.f90
Or you can use the Windows explorer. Make sure you set it up to display file extensions. Under Tools | Folder Options, unselect 'Hide extensions for known file types'. To rename a file, either select it and press F2, or right-click and select Rename.
In the WordPad Save dialog, type the filename in double quotes, e.g. "addition.f90"
. This will override the default extension.