Another way to learn New Technology

Rules of File Naming in Detail

0 81

File Naming Rules In Detail

Hey viewers, Welcome again to All In One Tuts with a new tutorial on File Naming Rules in detail so without wasting your time let’s get started.

The exact rules for the file naming vary somewhat from system to system, but all operating systems allow strings of one to eight letters as legal file names. Frequently digits and few special characters are also permitted, therefore, file names like ‘ OST ‘, ‘ Sys_Prog ‘ are also permitted. Similarly, some file systems distinguish between upper case and lower case letters, whereas others do not.

Almost every operating system supports two parts of a file name, where the two parts are separated by a period, as in John.c. The part following the period is called the file extension and usually indicates something about the file. The size of this extension can be up to three characters in MS-DOS whereas, UNIX permits that a file may have two or more extensions like ‘ John.c.z ‘, where ‘.z’ indicates that a file has been compressed or zipped.

The figure shows some typical file extensions.

Extension

Meaning
file.bak Backup file
file.bas BASIC source program
file.bin Executable binary program
file.c C source program
file.dat Data file
file.doc Documentation file
file.ftn FORTRAN source program
file.hlp Text for HELP command
file.lib Library of object files used by the linker
file.man Online manual page
file.obj Object file (compiler output, not yet linked)
file.pas Pascal source program
file.txt

General text file

 

File extensions are important to know because they indicate a particular software needed to open a particular file example, a C compiler will compile only ‘c’ files and not any other file. Looking at the file “John.c”, the user can identify that this is a program file in ‘C’ language and can be opened and compiled using a ‘C’ compiler.