Computer file

From WikiMD's Wellness Encyclopedia

(Redirected from Digital file)

PunchCardDecks.agr.jpg
BRL61-IBM 305 RAMAC.jpeg
FileFolders.svg
Bitrot in JPEG files, 0 bits flipped.jpg
Computer file
Filename extensionVarious


A computer file is a digital resource for storing information, which is available to a computer program and is usually based on some kind of durable storage. A file is "durable" in the sense that it remains available for programs to use after the current program has finished.

Structure[edit | edit source]

A computer file is typically organized in a hierarchical structure, which includes the following components:

File Name[edit | edit source]

The file name is a string of characters that uniquely identifies a file within a directory. It often includes an extension that indicates the file type, such as `.txt` for text files or `.jpg` for image files.

File Extension[edit | edit source]

A file extension is a suffix at the end of a file name that indicates the file's format or type. For example, `.docx` indicates a Microsoft Word document, while `.mp3` indicates an audio file.

File Path[edit | edit source]

The file path is a string that specifies the location of a file within a file system. It includes the directory and subdirectory names leading to the file.

File Metadata[edit | edit source]

Metadata is data about data. In the context of files, metadata includes information such as the file's size, creation date, modification date, and permissions.

Types of Files[edit | edit source]

Files can be broadly categorized into several types based on their content and usage:

Text Files[edit | edit source]

Text files contain human-readable characters and are often used for storing written content. Examples include `.txt`, `.csv`, and `.html` files.

Binary Files[edit | edit source]

Binary files contain data in a format that is not human-readable. They are used for storing images, audio, video, and executable programs. Examples include `.exe`, `.jpg`, and `.mp4` files.

Executable Files[edit | edit source]

Executable files contain programs that can be run by the computer. They include files with extensions like `.exe` on Windows or `.sh` on Unix-based systems.

File Systems[edit | edit source]

A file system is a method and data structure that an operating system uses to control how data is stored and retrieved. Without a file system, data placed in a storage medium would be one large body of data with no way to tell where one piece of data stops and the next begins.

Common File Systems[edit | edit source]

File Operations[edit | edit source]

Common operations that can be performed on files include:

Creating[edit | edit source]

Creating a file involves allocating space in the file system and assigning a name to the file.

Reading[edit | edit source]

Reading a file involves accessing the data stored in the file and interpreting it according to the file format.

Writing[edit | edit source]

Writing to a file involves modifying the data stored in the file or appending new data to it.

Deleting[edit | edit source]

Deleting a file involves removing its entry from the file system, which may also free up the space it occupied.

Security and Permissions[edit | edit source]

File security is crucial to protect sensitive data from unauthorized access. File permissions determine who can read, write, or execute a file. Common permission settings include:

  • Read (r)
  • Write (w)
  • Execute (x)

Also see[edit | edit source]

Template:File formats

WikiMD
Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD

Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD