A File Is Named Collection of Data
One of the simplest ways to describe files and volumes is to use an analogy. A file is like
a set papers on which information is written; we'll compare it to a tabbed chapter of a
manual.
Chapter
1:
Chapter
2:
Chapter
3:
Manual
Program
Numeric
Organization
Structure
Computation
1
0
]
1
0
l
1
0
I
UUU
• •
•
Chapter
17:
Porting
and
Sharing
Files
I·
~~
Tabs
have
each
chapter's
name
Figure 3-1. A File is Like a Tabbed Manual Chapter
Table 3-1. File Comparison
Attribute
Chapter
File
Type of information:
Printed characters,
Magnetic
patterns
( representing
numbers, or graphics
characters, numbers, dots on screen,
etc. )
Access method:
Tab/chapter title
File name
Like pages in a chapter, files may contain BASIC programs or more general data-
information to be used by a program, such as numbers and/or text. The name on the
tab helps you locate the chapter and decide whether or not you want to look in it.