File Access Types

There are three types of files used by a computer:

■ Sequential access files are files where data is retrieved in the same order as it is stored, such as files stored in the CSV format (comma-delimited text), TXT format (text separated by tabs), or PRN format (text separated by a space). Sequential file access is often used for writing text files, such as error logs, configuration settings, and reports. Sequential files have the following modes: Input, Output, and Append. The mode specifies how you can work with a file after it has been opened.

■ Random access files are text files where data is stored in records of equal length and in fields separated by commas. Random access files have only one mode—Random.

■ Binary access files are graphic files and other non-text files. Binary files can only be accessed in a Binary mode.

0 0

Post a comment