answersLogoWhite

0


Best Answer

Files

A file on a computer system is any block of information being stored on the drive of that system. Files are used to hold all the information that makes a computer system function. Furthermore, most people have plenty of personal computer files with their own content within. For example, any text document you create and save on your computer is saved as a file. This also includes music, video and other application files that contain content for the user or functions for the computer itself. Folders Every computer system comes with a file system to keep all its files organized in groups. Folders serve to hold files inside them as well as other sub-folders and subsequent files. Folders help sort all the files on a system so the user (or the computer itself) can find and access files in an easier and more coherent fashion than just arranging all the files in one single directory. Many people have common folders on their computer such as a pictures folder and a music folder. Most folders can hold as much information as the computer can store on its drive and can hold any type of files. It would be possible to store photos in the music folder if the user so desired. Differences While files and folders are both stored on a computer drive, they are different items and each serves a specific purpose. While files store all the physical computer data within themselves, they are located somewhere within the directory located on the computer. These directories are also known as folders and contain all the files on the system.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between a computer file and a computer directory?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Difference between current and standard directory in c?

The 'current directory' is where you are in this moment, the 'standard directory' is where something usually is (quite vague definition, isn't it?)... for example, the standard directory for the apache configuration file is /etc/apache, for temporary files it is /tmp


Put file in the same directory as my HTML file?

Yes you need to put the file in the same directory. This will get the file to be executed from the HTML file.


Can a directory be called a file?

Yes. A directory can be called a file and, in most implementations, under the wraps, it is a file, but it is not a file that an ordinary user can access. It is the responsibility of the file system code in the operating system. Unless you are writing code that manages file systems, it is best to think of a directory as a directory and to use the API provided to access it.


What is the difference between using angular brackets in C language and double quotes in Cpp language to enclose header files?

When you includes any header file using "" that time compiler try to locate this file first from your program's local directory and then from library. But if you include the .h file using <> then compiler assumes you are including some library file.


How do you set working directory in RStudio?

The global default working directory is ~. Note that relative file references in your code will become invalid when you change working directories.There are a number of ways to change the current working directory:Use the setwd R function.Use the Tools | Change working dir... menu (Session | Set working Directory on a Mac).From within the File pane, use More | Set As Working Directory menu.On Windows, you can set the working directory by changing the Start in field of your RStudio shortcut.On a Mac you can drag/drop a folder onto the RStudio Dock icon to set the working directory.Alternatively, open a terminal and specify the work directory:$ open -a RStudio ~/projects/foo$ open -a RStudio .Note you can use the same terminal commands in Linux, however omit the trailing '.' in the second invocation. The first invocation sets "~/projects/foo" as the working directory, the second uses the current working directory.When launched through file association, RStudio automatically sets the current working directory to the directory of the opened file. However, if RStudio is already running, opening another file via file association will not change the current working directory.RStudio uses the .Rprofile file located in the current working directory. If there is no .Rprofile in that directory, the .Rprofile file located in the global default working directory (~/.Rprofile) is used instead.The global .RData file will be saved in your new working directory when you exit RStudio.

Related questions

What is the difference between a directory file and an ordinary file?

1. Directory files are the system file and can be not change or modified. The ordinary file are the one user create and it can be modified and changed .


What is the name of the file that keeps associations between computer names IP addresses on the local computer?

directory


How deep should a file directory be on a Computer?

There's no particular requirements on how deep a directory needs to be or should be. The directory can be any depth, subject to file system limitations.


What is the difference between .file and ..file in Unix?

Neither are actually files. They are references to directories, the current one and the parent directory, respectively. They can be used in file copy and move operations in place of explicitly printing the directory names. For instance:mv ./* ..would move all files from the child directory into it's parent.


What is the Difference between downloading uploading computer terms?

Downloading is when you fetch a file from another computer. Uploading is when you send a file to someone else.


Difference between current and standard directory in c?

The 'current directory' is where you are in this moment, the 'standard directory' is where something usually is (quite vague definition, isn't it?)... for example, the standard directory for the apache configuration file is /etc/apache, for temporary files it is /tmp


What is the a directory?

A directory in a computer is a section of the hard drive that contains files. A directory is important for file storage and easy accessibility for later use.


What is a directory computer science?

A directory is a location for storing files on your computer. Directories are found in a hierarchical file system such asDOS, OS/2, Unix, etc. When referring to a directory, a user commonly indicates the name of the directory.


What is the difference between a computer file and manual file in a programming language?

A computer file is a collection of ones and zeros on a storage medium. A manual file is a hardened piece of steel with teeth used to shape and form objects by hand.


What is the difference between running a file and saving a file?

When you run a file it goes to a temporary location and can be deleted, but when you save it will be saved to your computer and it cant be deleted unless you do so.


What is the difference between ls and vdir command in Unix?

ls is the default command that lists the contents of a directory. vdir is a common alias for the command: ls -al That command lists the contents of a directory as well as information about the file such as owner, group, file size, permissions, last modified, etc.


What is the directory structure for the texts?

A directory structure for a computer hard drive is located in a text file. This will show how the files and programs are organised in a tree structure on that drive.