answersLogoWhite

0

By "file name", I assume you mean a path on a computer.

At it's basic, a file name is composed of the name, and usually an extension. E.g. "Hello.txt". This files name is "Hello", and it's extension is ".txt". The extension helps the operating system know what to open it with. For example, on a Windows OS, the ".txt" extension (by default) makes Notepad open the file. If you made a file and gave it a random extension, such as ".foobarfile1", the computer doesn't know what to open it with. This will normally bring up a dialog requesting which program should be used to open the file.

A Path is very similar to a file name, but it includes the drive and directory tree. For example, a file called "Hello.txt" in My Documents would look like "C:\Users\\Documents\Hello.txt". This method of showing file names is called "absolute". It is an unambiguous location. In the above path, "C:" is the drive name, then each word between "" marks is a directory. So to navigate to the file in Windows Explorer, you would open up My Computer, open C:\, the directory Users etc.

There are also relative path, such as "..\Hello.txt". This navigates from the current directory to the "parent" directory (the directory containing the one you are currently in) and accesses "Hello.txt" within that. This type of path is more complex, but has the advantage that you don't need to know the drive name and nearby directories to navigate to your files. I don't think relative paths have much use outside of developing programmes that read files though.

I hope this has answered your question, but to conclude, a file name contains the Name of the file (which makes it unique) and it's extension (which determines which program opens it). Finally, a path is a longer string, declaring exactly where the file is, or where it is relative to the current directory.

Again, I hope this helps,

Hnefatl

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is the file used to store Microsoft Access forms and reports?

They are all in the file along with the tables and other elements, as part of the database.They are all in the file along with the tables and other elements, as part of the database.They are all in the file along with the tables and other elements, as part of the database.They are all in the file along with the tables and other elements, as part of the database.They are all in the file along with the tables and other elements, as part of the database.They are all in the file along with the tables and other elements, as part of the database.They are all in the file along with the tables and other elements, as part of the database.They are all in the file along with the tables and other elements, as part of the database.They are all in the file along with the tables and other elements, as part of the database.They are all in the file along with the tables and other elements, as part of the database.They are all in the file along with the tables and other elements, as part of the database.


The Name assigned to a file when it is saved?

File Name


What function will read a specified number of elements from a file in c?

fread() function will read a specified number of elements from a file .


Introduction for Computer Science C plus plus Project on Periodic Table?

You can store all the information of the elements in files using a C++ program. Then you can use those files to access those files depending on the user choice of element by either Atomic number or Name. You can select file name by storing all the file names in a file so that can access all the elements.


What is a name assigned to a document when it is saved?

File name


What function will read a specified number of elements from a file?

The function fread() in C can be used to read a specified number of elements from a file. It takes as arguments the pointer to the buffer, size of each element, number of elements to read, and the file pointer.


What is the difference between path name and file name?

A file name refers to the name of a specific file, while a path name represents the location of a file within a file system. The path name includes the file's directory structure, providing the file's exact location on a computer.


What is the name of the answer file?

File name is 'igiloader.exe'


What is difference between File name and file extension?

A file name is the main name given to a file, such as document.docx. The file extension, represented by the characters after the dot, indicates the type of file and helps the operating system identify which software to use to open the file. For example, in document.docx, ".docx" is the file extension indicating that it is a Microsoft Word document.


What is a file of type R01R02R03?

well is this the file name ?? if its a file name then its not possible to say wat type of file is it ???


Where does the file name appear when you open an Excel file?

The File name will usually appear at the top of the excel file. It should look something like this: file name - Microsoft Excel...


A file name extension is an optional file identifier that is separated from the main file name by a?

. (Dot)