answersLogoWhite

0


Best Answer

The "Path" is the route map that leads to the folder that contains the "Filename"

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What Difference between path and a file name?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Basic Math

What is the basic difference between shortcuts and icons?

An icon is the picture that decorates a shortcut. The shortcut is a path to a file.


What is a basename?

A basename is a file name without any path or directory information.


What are the servlet config methods?

Methods in the Servlet ContextApart from setting and getting custom attributes used for our application, the context also contains various methods that we can use to retrieve specific information about the application and other aspects. They are:• getAttributeNames() - Returns an Enumeration object containing the attribute names available within this servlet context.• getContext(String uripath) - Returns a ServletContext object that corresponds to a specified URL on the server.• getInitParameter(String name) - Returns a string containing the value of the named context-wide initialization parameter, or null if the parameter does not exist.• getInitParameterNames() - Returns the names of the context's initialization parameters as an Enumeration of string objects, or an empty Enumeration if the context has no initialization parameters.• getMajorVersion() - Returns the major version as an int of the Java Servlet API that this Servlet Container supports.• getMimeType(java.lang.String file) - Returns the MIME type as a string of the specified file, or null if the MIME type is not known.• getMinorVersion() - Returns the minor version as an int of the Servlet API that this Servlet Container supports.• getNamedDispatcher(String name) Returns a RequestDispatcher object that acts as a wrapper for the named servlet.• getRealPath(String path) - Returns a string containing the real path for a given virtual path.• getRequestDispatcher(String path) Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path.• getResource(String path) - Returns a URL to the resource that is mapped to a specified path.• getResourceAsStream(String path) - Returns the resource located at the named path as an InputStream object.• getServerInfo() Returns the name and version as a String of the Servlet Container on which the servlet is running.


What are the components of jsp?

A JSP File Contents:A JSP file can contain the following:a. HTML contentsb. JavaScriptc. Java CodeCombining the features of the above 3 mentioned items; we get a powerful entity called the JSP. JSPs are used for the User Interface layer or the more colloquially called Front End layer of any J2EE application.JSP SkeletonBelow is how a Skeleton JSP File would look like. (The file has to be saved as .jsp)// Page Imports


How do you retrieve and save PHP variables using text files?

Saving and retrieving PHP variables to and from a text file is bad programming practice in most cases, and can have repercussions (for example, the possibility of a variable changing between any two times running a script, and the script not being prepared for the new value).There are better alternatives available, such as using a database system like MySQL, or a more standardized "text file" system using INI files. See the related links for information on MySQL and INI files. With that in mind:There are many routes to making a script that retrieves and saves PHP variables in a text file, but a simple and common one may use the functions file_get_contents and file_put_contents, along with others like preg_match.file_get_contents($filename) can be used to get the variables (and any other content) in our text file.file_put_contents($filename) can be used to save variables to our text file.preg_match($pattern, $string) can be used to validate a string and see if it matches the specified pattern.See the related links for more information on these variables.Before actually writing the script, a format of writing our variables (and their values) should be planned out. Simply put, what should your text file look like? For this example, we'll assume a style like this:var1 = "something"var2 = TRUEvar3 = 59The style rule we're going to use here is the name of a variable, followed by a space, an equal sign, and another space, then the PHP syntax of a variable value (var1 will be a string, var2 will be a boolean, var3 will be an integer, and such). A new line specifies a new variable declaration.Now lets go ahead and write our script. The one in this example will be called "index.php", but any name will do.index.php

Related questions

What is the difference between path name and file name?

A path name is the location of the file name. example: C:\Users\Desktop\Example.txt A file name is file itself. example: Example.txt


What are the similarities between a file path name and a file name?

A file path will usually just be the fully qualified location the file is located in. Some platforms may even include the filename in the file path, but that's not always the case. A file path may look like this: /usr/share/apps Whereas a filename is things like "superduper.mp3" and the like.


What is the basic difference between shortcuts and icons?

An icon is the picture that decorates a shortcut. The shortcut is a path to a file.


Difference between shortest path and alternate path?

difference between shortest path and alternate path


What is the difference between absolute path name and relative path name in Unix?

Absolute path: Path from root directory (it is the same place, wherever the current path is) Relative path: Relative to the current path.


What is the relation between the path difference and phase difference?

Relation between phase difference and path difference is path difference/wavelength=phase difference/2*pi


What is qualified path?

A qualified path is any file name that includes the path to the file, including the hard-drive designator. A non-qualified path is one that only includes the file name or is relative to the current folder, or that includes wildcards. If such a file exists, its path will typically be qualified by the callee.


Is this a file path c documentsspring 2012cis 101term papercomputer technology is an example of a?

of a file name with path.


Is what an absolute path name a relative path name or a simple file name milk co?

milk_co


What are the constructors are used to create an object of the file class?

There are three constructors that can be used to create a File class.public File(String path). 'path' is basically the full pathname to the file in your current directory.public File(String path, String name). You can also separate the path and filename. 'name' would represent the filename and 'path' would represent the name of the directory.public File(File directory, String name). This is somehow similar to the previous way; however, directory is a File object rather than a String object.To create a new File object:File newFile = new File("something");


What tells a computer the name and location of a file?

path


The location of a file is specified by its?

A location of a file is specified by its File Path.