30.07.2013 Views

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 17 Files and Streams 829<br />

Random-access file-processing programs rarely write a single field <strong>to</strong> a file. Normally, they write<br />

one object at a time.<br />

Sorting with direct-access techniques is fast. This speed is achieved by making the file large<br />

enough <strong>to</strong> hold every possible record that might be created. Of course, this means that the file<br />

could be sparsely occupied most of the time, possibly wasting memory.<br />

TERMINOLOGY<br />

binary digit (bit) GetFiles method of class Direc<strong>to</strong>ry<br />

BinaryFormatter class GetLastAccessTime method of class<br />

BinaryReader class<br />

Direc<strong>to</strong>ry<br />

BinaryWriter class GetLastAccessTime method of class File<br />

BufferedStream class GetLastWriteTime method of class<br />

character<br />

Direc<strong>to</strong>ry<br />

character set GetLastWriteTime method of class File<br />

Close method of class StreamReader In property of class Console<br />

closing a file ”instant-access” application<br />

Console class IOException<br />

Copy method of class File MemoryStream class<br />

Create method of class File modal dialog<br />

CreateDirec<strong>to</strong>ry method of class Move method of class Direc<strong>to</strong>ry<br />

Direc<strong>to</strong>ry<br />

Move method of class File<br />

CreateText method of class File Open method of class File<br />

data hierarchy OpenFileDialog class<br />

database OpenRead method of class File<br />

database management system (DBMS) OpenText method of class File<br />

Delete method of class Direc<strong>to</strong>ry OpenWrite method of class File<br />

Delete method of class File Out property of class Console<br />

Deserialize method of class<br />

pattern of 1s and 0s<br />

BinaryFormatter<br />

persistent data<br />

direct-access files random-access file<br />

Direc<strong>to</strong>ry class Read method of class Console<br />

Direc<strong>to</strong>ryInfo class ReadDouble method of class<br />

end-of-file marker<br />

BinaryReader<br />

Error property of class Console ReadInt32 method of class BinaryReader<br />

escape sequence ReadLine method of class Console<br />

Exists method of class Direc<strong>to</strong>ry ReadLine method of class StreamReader<br />

field ReadString method of class<br />

file<br />

BinaryReader<br />

File class record<br />

file-processing programs record key<br />

FileAccess enumeration regular expression<br />

file-position pointer SaveFileDialog class<br />

FileStream class secondary s<strong>to</strong>rage devices<br />

fixed-length records Seek method of class FileStream<br />

GetCreationTime method of class SeekOrigin enumeration<br />

Direc<strong>to</strong>ry<br />

separation character<br />

GetCreationTime method of class File sequential-access file<br />

GetDirec<strong>to</strong>ries method of class<br />

Serializable attribute<br />

Direc<strong>to</strong>ry<br />

SerializationException

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!