Geoffrey
Geoffrey

Reputation: 5432

Save a file with the extension .f90

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.

Upvotes: 1

Views: 2809

Answers (2)

codeape
codeape

Reputation: 100776

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.

Upvotes: 4

David Webb
David Webb

Reputation: 193716

In the WordPad Save dialog, type the filename in double quotes, e.g. "addition.f90". This will override the default extension.

Upvotes: 4

Related Questions