.f Fortran source code

Text & source code

MIME typetext/x-fortran
DescriptionFortran source code
CategoryText & source code
Based ontext/plain
Other extensions.f90, .f95, .for

Frequently asked questions

What is a .f file?

A .f file is a “Fortran source code” (MIME type text/x-fortran).

How do I open a .f file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .f file?

No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.f shows the guessed type.

Which format is .f based on?

Technically a .f file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .f?

The MIME type is text/x-fortran. In the Apache web server: AddType text/x-fortran .f; in nginx: types { text/x-fortran f; }.

Nearby entries