0% found this document useful (0 votes)
24 views1 page

Visual Basic Data File Types Guide

Visual Basic recognizes three types of data files: sequential files, random access files, and binary files. Sequential files are organized into lines of text and are easiest to work with but require sequentially processing the entire file to access a specific line. Random access files organize data into fixed-length records that can be directly accessed by record number without processing the whole file. Binary files store information as bytes for fastest reading and writing but appear unintelligible.

Uploaded by

Anupam M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views1 page

Visual Basic Data File Types Guide

Visual Basic recognizes three types of data files: sequential files, random access files, and binary files. Sequential files are organized into lines of text and are easiest to work with but require sequentially processing the entire file to access a specific line. Random access files organize data into fixed-length records that can be directly accessed by record number without processing the whole file. Binary files store information as bytes for fastest reading and writing but appear unintelligible.

Uploaded by

Anupam M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Visual Basic recognizes three different types of data files: sequential files (also called text files), random

access files, and binary files (also called unformatted files).



Sequential files are the easiest to work with, since they can be created by a text editor or word processor, or by a
Visual Basic program.
Such files consist of variable-length strings, organized into individual lines of text.
Sequential files can be displayed or printed at the operating system level (outside of Visual Basic), and they
are easily imported into an application program,such as a word processor or spreadsheet program.
In order to access a particular line of text, however, you must start at the beginning of the file and progress
through the file sequentially, until the desired line has been located. This process can be very time-
consuming when searching through a large file.
Random access files are organized into fixed-length records. (A record is a set of related data items, such
as a name, an address and a telephone number. Each data item within a record fills a field).
Any record can be accessed directly by specifying the corresponding record number or record location. Thus, it is not
necessary to read through the entire file in order to access a particular record.
Applications that require direct access to individual records without regard to their order (as, for example, the daily
updating of customer accounts as they are received) will therefore execute much faster with direct rather than
sequential data files.

Finally, binary files store information as a continuous sequences of bytes. Such files appear unintelligible
when printed or displayed on a computer screen, but their contents can be read into or written out of a
computer faster than other file types, particularly sequential files.

You might also like