Murach's Beginning Visual Basic .NET

This chapter shows how to use structures and System.IO classes to write data to disk files and read data from disk files.

Chapter 13 How to work with structures and files
How to work with structures 404
How to declare a structure 404
How to use a structure 404
An introduction to the System.IO classes 406
The classes for managing directories, files, and paths 406
How files and streams work 408
How to use the FileStream class 410
How to use the exception classes for file I/O 412
How to use the System.IO classes for binary files 414
How to use the BinaryReader class to read from a binary file 414
How to use the BinaryWriter class to write to a binary file 416
The design and property settings for the Book Maintenance form 418
The code for the Book Maintenance form when it processes a binary file 420
How to use the System.IO classes for text files 424
How to use the StreamReader class to read from a text file 424
How to use the StreamWriter class to write to a text file 426
The code for the Book Maintenance form when it processes a text file 428
Visual Basic functions for file processing 430
Basic functions 430
Random access functions 430
Perspective 432
t




Murach's Beginning Visual Basic .NET

Learn more about this book

Add this book to your cart