What is the DATA file extension? File Management, File Types, File System, File Attributes What is a Data File

💖 Do you like it? Share the link with your friends

Executable files

1.1. Batch (BAT)

1.2. Software (COM, EXE)

2.1. Simple texts (TXT)

2.2. Complex (DOC)

2.3. Spreadsheets (XLS)

2.4. Databases (MDB)

2.5. Archive (RAR, ZIP)

2.6. Graphic (BMP, JPG, GIF)

2.7. Application components (LIB, OVL)

2.8. Temporary (TMP), etc.

3. Shortcuts– minifiles containing links to other objects for the purpose of opening them (PIF, LNK)

File attributes:

“Hidden” – not visible unless you specifically set to view hidden files;

“Ready for archiving” – will be archived by the archiving (duplication) wizard;

“Compressed” – will be compressed to save disk space;

“Encrypted” – cannot be opened and copied in another user session, but can be deleted and renamed;

“Indexed” – will be marked for quick search in the future.

Note. The attributes “Compressed”, “Encrypted”, “Indexed” can only be set in the NTFS file system.

Managing File System Objects

Types of operations with FS objects:

1. Navigation and search

2. Creation and deletion

3. Editing and viewing

4. Renaming and setting attributes

5. Copy and move

6. Archiving and unarchiving

Ways to create objects:

1. Program - editor or program wizard

2. File shell or file manager

3. Copying (via clipboard or dragging)

Options for opening objects:

1. Folder: List contents

2. Executable file: launch

3. Data file: launch the editor or viewer registered (associated) for this document type

Options for the consequences of dragging an object (“Drag and Drop”):

1. Left cell “Mice” - moving within a disk, copying between disks

2. Right cell "Mice" - select from context menu at the end of dragging

3. Ctrl+left key. "Mice" - copying

4. Shift+left key. "Mice" - moving

Features of copy-move:

1. When copying: a duplicate byte content is created

2. When moving within one disk, the full file name in FAT changes

3. When moving between different disks, first the file is copied, then the FAT indicates the deletion of this file

Conclusion: within one disk, a move operation is faster than a copy operation, and vice versa between different disks.

Examples of MS-DOS commands:

1. External:

1.3. Format the disk: FORMAT disk_name


2. Internal (executed by the command processor):

2.1. Create directory: MD directory_name

2.2. Removing a directory: RD directory_name

2.3. Deleting the DEL file filename

2.4. View the contents of the current directory: DIR

2.5. Exiting the shell: EXIT

Table Ways to copy and move files

Files saved in the data format are used by Analysis Studio, and this application stores part data used for offline analysis in these files. This data can be entered into a corresponding data file created by the Analysis Studio user. Typically classified as data files, these DATA files are attached with a .data extension and are more specifically called Analysis Studio offline data files. Appricon has developed the Analysis Studio data format and software to provide users with offline data storage and analytical functionality with useful instatistical data research, storage, management and analysis. The content of these data files may include data encoded in text or tab delimited formats. Analysis Studio file headers can also be included in this file data by the Analysis Studio user. A user disconnected from the Analysis Studio server typically accesses these file data offline, although the Analysis Studio software also allows the user to access the contents of these data files even in real time. The content of these data files can also be imported from other databases such as Microsoft SQL Server and Microsoft Access databases. Analysis Studio software links the data file into a corresponding STP file, and the content of these STP files consists of object metadata and schematic design details. A Microsoft Windows user can delete the Analysis Studio header file of a data file in order to open and view its contents using Microsoft Excel 2010 spreadsheets.

Good day, dear user, in this article we will talk about such a topic as files. Namely, we will look at: File management, file types, file structure, file attributes.

File system

One of the main tasks of the OS is to provide convenience to the user when working with data stored on disks. To do this, the OS replaces the physical structure of the stored data with some user-friendly logical model, which is implemented in the form of a directory tree displayed on the screen by utilities such as Norton Commander, Far Manager or Windows Explorer. The basic element of this model is file, which is the same as file system in general, can be characterized by both logical and physical structure.

File management

File– a named area of ​​external memory intended for reading and writing data.

Files are stored in power-independent memory. An exception is an electronic disk, when a structure that imitates a file system is created in the OP.

File system(FS) is an OS component that provides organization for the creation, storage and access to named data sets - files.

The file system includes: The file system includes:

  • The collection of all files on the disk.
  • Sets of data structures used to manage files (file directories, file descriptors, free and used disk space allocation tables).
  • A set of system software tools that implement various operations on files: creation, destruction, reading, writing, naming, searching.

The problems solved by the FS depend on the way the computing process is organized as a whole. The simplest type is a file system in single-user and single-program operating systems. The main functions in such a FS are aimed at solving the following tasks:

  • Naming files.
  • Software interface for applications.
  • Mapping the logical file system model onto the physical organization of the data warehouse.
  • FS resistance to power failures, hardware and software errors.

FS tasks become more complicated in single-user multitasking operating systems, which are designed for the work of one user, but make it possible to run several processes simultaneously. To the tasks listed above, a new task is added - shared access to a file from several processes.

The file in this case is a shared resource, which means the FS must solve the whole range of problems associated with such resources. In particular: there must be means for blocking a file and its parts, reconciling copies, preventing races, and eliminating deadlocks. In multi-user systems, another task appears: Protecting the files of one user from unauthorized access by another user.

The functions of the FS, which operates as part of a network OS, become even more complex; it needs to organize protection files one user from unauthorized access of another user.

Main purpose file system and corresponding to it file management systems– organization of convenient management of files organized as files: instead of low-level access to data indicating the specific physical addresses of the record we need, logical access is used indicating the file name and record in it.

The terms “file system” and “file management system” must be distinguished: the file system determines, first of all, the principles of access to data organized as files. And the term “file management system” should be used in relation to a specific implementation of the file system, i.e. This is a set of software modules that provide work with files in a specific OS.

Example

The FAT (file allocation table) file system has many implementations as a file management system

  • The system developed for the first PCs was simply called FAT (now called simply FAT-12). It was designed to work with floppy disks, and for some time it was used to work with hard drives.
  • Then it was improved to work with larger hard drives, and this new implementation was called FAT-16. this name is also used in relation to the SUF of MS-DOS itself.
  • The implementation of SUF for OS/2 is called super-FAT (the main difference is the ability to support extended attributes for each file).
  • There is a version of SUF for Windows 9x/NT, etc. (FAT-32).

File types

Regular files: contain information of an arbitrary nature that is entered into them by the user or that is generated as a result of the operation of system and user programs. The contents of a regular file are determined by the application that works with it.

Regular files can be of two types:

  1. Software(executable) – are programs written in the OS command language and perform some system functions (have extensions .exe, .com, .bat).
  2. Data files– all other types of files: text and graphic documents, spreadsheets, databases, etc.

Catalogs- this is, on the one hand, a group of files combined by the user based on certain considerations (for example, files containing game programs, or files that make up one software package), and on the other hand, this is a special type of files that contain system help information about a set of files grouped by users according to some informal criteria (file type, location on disk, access rights, date of creation and modification).

Special files– these are dummy files associated with input/output devices, which are used to unify the mechanism for accessing files and external devices. Special files allow the user to perform I/O operations using normal file write or file read commands. These commands are processed first by FS programs, and then at some stage of the request execution they are converted by the OS into control commands for the corresponding device (PRN, LPT1 - for the printer port (symbolic names, for the OS - these are files), CON - for the keyboard).

Example. Copy con text1 (working with the keyboard).

File structure

File structure– the entire set of files on the disk and the relationships between them (the order in which files are stored on the disk).

Types of file structures:

  • simple, or single-level: A directory is a linear sequence of files.
  • hierarchical or multi-level: A directory itself can be part of another directory and contain many files and subdirectories within it. The hierarchical structure can be of two types: “Tree” and “Network”. Directories form a “Tree” if the file is allowed to be included in only one directory (OS MS-DOS, Windows) and “Network” - if the file can be included in several directories at once (UNIX).
  • The file structure can be represented as a graph describing the hierarchy of directories and files:



File name types

Files are identified by names. Users give files symbolic names, this takes into account OS restrictions on both the characters used and the length of the name. In early file systems these boundaries were quite narrow. So in popular FAT file system The length of names is limited by the well-known 8.3 scheme (8 characters - the name itself, 3 characters - the name extension), and in UNIX System V the name cannot contain more than 14 characters.

However, it is much more convenient for the user to work with long names, since they allow you to give the file a truly mnemonic name, by which, even after a fairly long period of time, you can remember what this file contains. Therefore, modern file systems tend to support long symbolic file names.

For example, Windows NT specifies in its NTFS file system that a file name can be up to 255 characters long, not counting the terminating null character.

Moving to long names creates a compatibility issue with previously created applications that use short names. In order for applications to access files according to previously accepted conventions, the file system must be able to provide equivalent short names (aliases) to files that have long names. Thus, one of the important tasks becomes the problem of generating appropriate short names.

Symbolic names can be of three types: simple, compound and relative:

  1. Simple name identifies a file within one directory, assigned to files taking into account the symbol nomenclature and name length.
  2. Full name is a chain of simple symbolic names of all directories through which the path from the root to a given file, disk name, file name passes. So the full name is composite, in which simple names are separated from each other by a separator accepted in the OS.
  3. The file can also be identified relative name. The relative file name is determined through the concept of "current directory". At any given time, one of the directories is current, and this directory is selected by the user himself at the command of the OS. The file system captures the name of the current directory so that it can then use it as a complement to relative names to form the fully qualified file name.

In a tree-like file structure, there is a one-to-one correspondence between a file and its full name - “one file - one full name”. In a network file structure, a file can be included in several directories, which means it can have several full names; The correspondence here is “one file - many full names.”

For file 2.doc, define all three types of name, provided that the current directory is the 2008_year directory.

  • Simple name: 2.doc
  • Full name: C:\2008_year\Documents\2.doc
  • Relative name: Documents\2.doc

File attributes

An important characteristic of a file is its attributes. Attributes– this is information describing the properties of files. Examples of possible file attributes:

  • Read-Only attribute;
  • Sign “hidden file” (Hidden);
  • Sign “system file” (System);
  • Sign “archive file” (Archive);
  • File type (regular file, directory, special file);
  • Owner of the file;
  • File Creator;
  • Password to access the file;
  • Information about permitted file access operations;
  • Time of creation, last access and last modification;
  • Current file size;
  • Maximum file size;
  • Sign “temporary (remove after process completion)”;
  • Blocking sign.

In different types of file systems, different sets of attributes may be used to characterize files (for example, in a single-user OS, the set of attributes will not contain characteristics related to the user and security (the creator of the file, the password for accessing the file, etc.).

The user can access attributes using the facilities provided for this purpose by the file system. Typically, you can read the values ​​of any attributes, but only change some, for example, you can change the access rights of a file, but you cannot change the creation date or the current size of the file.

File permissions

Defining access rights to a file means defining for each user a set of operations that he can apply to a given file. Different file systems can have their own list of differentiated access operations. This list may include the following operations:

  • file creation.
  • file destruction.
  • writing to a file.
  • opening a file.
  • closing the file.
  • reading from file.
  • file addition.
  • search in the file.
  • getting file attributes.
  • setting new attribute values.
  • renaming.
  • file execution.
  • reading a catalog, etc.

In the most general case access rights can be described by a matrix of access rights, in which the columns correspond to all files in the system, the rows correspond to all users, and at the intersection of rows and columns the permitted operations are indicated:

In some systems, users may be divided into separate categories. For all users of the same category, uniform access rights are defined, for example, in the UNIX system, all users are divided into three categories: the owner of the file, members of its group, and everyone else.

(data file) A file located on a computer system that contains data, as opposed to files containing a program. See: computer programming. A data file is usually divided into records and fields.


  • - The stone of Destiny...

    Encyclopedia of Mythology

  • - a named collection of bytes, recorded on a hard or floppy disk, in which a separate element of a computer system is stored, for example. Word document or drawing...

    Encyclopedia of technology

  • - a set of pieces of information of the same type in structure and method of use, placed on data carriers of the external memory of a computer and considered in the process of transmission and processing as a single whole...

    Big Encyclopedic Polytechnic Dictionary

  • - A collection/complex of interrelated information in a computer, stored in its storage as a single whole. The file may contain a program that can be copied into RAM and executed...

    Dictionary of business terms

  • - a collection of related records considered as a single whole...

    Great Accounting Dictionary

  • - a set of ordered and interconnected pieces of information that has a description for identifying departments. portions...

    Natural science. encyclopedic Dictionary

  • - A file containing system information about the server’s operation and information about user actions: - date and time of the user’s visit; - IP address of the user’s computer; - name of the user's browser...

    Dictionary of business terms

  • - a file containing system information about the operation of the server and information about user actions: - date and time of the user’s visit; - IP address of the user’s computer; - name of the user's browser...

    Financial Dictionary

  • - a set of related records stored in the external memory of a computer and considered as a whole. Typically, a file is uniquely identified by specifying the file name, its extension, and the path to the file...

    Financial Dictionary

  • - a set of records located in a different order in relation to the source file. See. also: Files  ...

    Financial Dictionary

  • - a set of records arranged in the order they were received at the recording point. See. also: Files  ...

    Financial Dictionary

  • - a set of records, the elements of which are obtained by processing the original or inverted files. See. also: Files  ...

    Financial Dictionary

  • - a collection of related records considered as a single whole. For example, one line of a personnel questionnaire is considered as an element, the entire questionnaire is considered as a record, a complete set of such records is considered as a file...

    Large economic dictionary

  • - "..."" means any data set subject to automated processing.....

    Official terminology

  • - a set of ordered and interconnected pieces of information from homogeneous elements, having a description for identifying individual pieces...

    Modern encyclopedia

  • - ; pl. fa/yly, R....

    Spelling dictionary of the Russian language

"DATA FILE" in books

Project “Data Warehouse” and project “Technology for identifying hidden relationships within large databases”

From the author's book

The “Data Warehouse” project and the “Technology for identifying hidden relationships within large databases” project Both of these projects were integrated in 1999. Thanks to them, the development and implementation of campaigns for the sale of banking products began. These projects have created great

Export data from an Access 2007 database to a SharePoint list

author Londer Olga

Exporting data from an Access 2007 database to a SharePoint list Access 2007 allows you to export a table or other database object in a variety of formats, such as an external file, a dBase or Paradox database, a Lotus 1-2-3 file, an Excel 2007 workbook, a Word file 2007 RTF, text file, XML document

Move data from an Access 2007 database to a SharePoint site

From the book Microsoft Windows SharePoint Services 3.0. Russian version. Chapters 9-16 author Londer Olga

Moving data from an Access 2007 database to a SharePoint site The needs of many Access 2007 applications go beyond simply managing and collecting data. Often such applications are used by many users of the organization, which means they have increased needs for

Rescuing data from a damaged database

From the book InterBase World. Architecture, administration and development of database applications in InterBase/FireBird/Yaffil author Kovyazin Alexey Nikolaevich

Rescuing data from a damaged database It is possible that all of the above steps will not restore the database. This means that the database is seriously damaged and either cannot be restored as a whole, or it will require

Validation of entered data at the database processor level

author McManus Geoffrey P

Validating entered data at the database processor level In addition to validating data as you enter information, you should be aware that you can also perform validation at the database processor level. This check is usually more reliable because it is applied independently

From the book Database Processing in Visual Basic®.NET author McManus Geoffrey P

Updating a Database Using a Data Adapter Object

From the book The C# 2005 Programming Language and the .NET 2.0 Platform. by Troelsen Andrew

Updating a Database Using a Data Adapter Object Data adapters can do more than populate DataSet object tables for you. They can also support a set of basic SQL command objects, using them to return modified data back to storage

Chapter 2 Data Entry. Types, or formats, of data

From an Excel workbook. Multimedia course author Medinov Oleg

Chapter 2 Data Entry. Types, or formats, of data Working with Excel documents involves entering and processing various data, that is, information that can be textual, numerical, financial, statistical, etc. MULTIMEDIA COURSE Methods of data entry and processing

2.4.5.1. Falcon File and Data Structures

From the book MySQL: A Professional's Guide author Pautov Alexey V

3.2. Exporting data from ERwin to BPwin and associating data model objects with arrows and activities

From the book Business Process Modeling with BPwin 4.0 author Maklakov Sergey Vladimirovich

Client-server databases versus file servers

by Borri Helen

Client-server databases versus file servers File sharing systems are another example of client-server systems. File servers and file system servers serve client requests for files and file systems in sometimes very confusing ways

Data model database

From the book Firebird DATABASE DEVELOPER'S GUIDE by Borri Helen

Data model<>database The “world” that was obtained through the process of description and analysis is the blueprint for your data structures. It is believed that a logical model should describe relationships and sets. A common mistake (and a pitfall common to all CASE tools) is to blindly

Databases (classes for working with databases)

From the book Microsoft Visual C++ and MFC. Programming for Windows 95 and Windows NT author Frolov Alexander Vyacheslavovich

Databases (Database Classes) MFC includes several classes that provide support for database applications. First of all, these are classes focused on working with ODBC drivers – CDatabase and CRecordSet. New tools are also supported

From the book Commentary on the Federal Law of July 27, 2006. N 152-FZ "On personal data" author Petrov Mikhail Igorevich

Article 16. Rights of personal data subjects when making decisions based solely on automated processing of their personal data Commentary on Article 161. The commented article defines the rights of personal data subjects in relation to the adoption

2. Determining the type of data comparison (from idea to data comparison)

From the book Speak the Language of Diagrams: A Guide to Visual Communications author Zelazny Jean

2. Determine the type of data comparison (from idea to data comparison) This step is the link between the idea and the finished diagram. It is very important to understand that any idea - any aspect of the data that you want to focus on - can be expressed through

Data files

During the development of programs, there is often a need to store and process stored information. This information can be very diverse: initial data for solving problems, calculation results, lists, and so on. Database files can be used to store such information. Data files are text. Depending on the organization of data on disks or other machine media, text files are divided into files with sequential access, direct access files And binary files.

Sequential text files (sequential files) do not have any structure. The structure of these files is determined by the reading program itself. In sequential text files, each line ends with two special characters: line end and carriage return, which are entered into the program text when you press the Enter key on your keyboard. Therefore, one of the easiest ways to process a sequential text file is to read it line by line. Creating text files with sequential access is also not difficult. It can be created with any text editor. Data is written to a sequential file sequentially byte by byte. To analyze and select the necessary information, the file must be fully read. This increases the requirements for RAM and reduces the speed of program execution.

Direct access text files (direct access files) are designed to read and write text or structured binary files with fixed-length records. They allow you to write and retrieve data from a file by record number. This reduces the time spent searching and retrieving data. However, this is an inefficient use of disk space, since the length of each field in the record must be specified in advance.

Binary files(binary) are used to read and write arbitrarily structured data. Binary files are, strictly speaking, not a new file type, but one of the ways to manage files of any type. Methods for working with binary files allow you to read and change any byte of a file.

To work with data files, commands are used to open a file, close a file, write and read data from a file, as well as a number of functions that make working with files easier. All these commands are traditional for all versions of the Basic language.

Opening files

To open files use the command Open .

Open “file_spec” For (file type)

As[#]N



Option “ file_spec ”, as is known, allows you to specify the drive, route, name and extension of the file name. For example: R:/Prognoz/Ucheb/prognoz1.dan. In order for a file to be used on computers running the MS DOS operating system, the file name and its extension must be formed according to the rules of the MS DOS operating system. That is, only Latin characters and numbers can be used in the file name and file name extension, the file name must begin with a letter, the length of the file name must not exceed 8 characters, and the file name extension must not exceed four characters, including a period. Dots and spaces are not allowed in the file name. The file specification is enclosed in quotation marks.

Option For determines the file type. The file type indicates its structure and use and can take the following values:

Input– sequential access file, open for reading;

Output– sequential access file, open for writing;

Append- sequential access file, open for adding data;

Bynary– the binary file is open for writing and reading data:

Random– the direct access file is open for writing and reading data.

Option Access determines access rights to data when working in computer networks. It can have three meanings:

Read– reading data from the file is allowed;

Write– writing data to a file is allowed;

Read Write- Allowed to read and write data. This access mode is the default.

Option Lock . Because read-write mode is typically intended to work with files that can be shared by many users or applications, it is necessary to ensure data integrity when shared. For this purpose, the blocking parameter is used, which can take the following values:

Shared– the file can be used by all processes to read and write data;

LockRead– reading ban. No other process can read data from the file. This option can be set if no other process is currently performing a read operation.

LockWrite– recording prohibition. No other process can write data to the file. This option can be set if no other process is currently performing a write operation.

LockReadWrite– prohibition of writing and reading data. This parameter can be set if no other process is currently performing a write or read operation.

Option As – defines the channel number. Sign # can be omitted. The channel number can range from 1 to 255. The number of simultaneously open channels is determined by operating system restrictions specified in the Config.sys file.

Option Len – used only in direct access files. It sets the length of the record in bytes.

At opening or, in other words, initialization files the following operations are performed:

a connection is established between the file specification and its program number. Therefore, in all subsequent operations with this file, a reference is given to the channel number, and not to the file specification;

a system or software buffer used to implement I/O statements is pinned. Using a buffer reduces the number of program accesses to the disk, and therefore increases the speed of writing and reading data;

the initial values ​​of the parameters located in the so-called file control block are formed.

Closing files

To close files use the command Close . Command syntax:

Close [#<номер канала> ]

The Close command with a channel number parameter closes the specified channel. The Close command without parameters closes all open files. The Close command clears the buffer and instructs the operating system to update the file allocation table.

The commands for writing data to a file and reading information from data files depend on the file type.



tell friends