O'Reilly logo

Visual Basic® 2012 How to Program, Sixth Edition by Paul Deitel, Abbey Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8. Files

Consciousness ... does not appear to itself chopped up in bits. ... A “river” or a “stream” are the metaphors by which it is most naturally described.

—William James

I can only assume that a “Do Not File” document is filed in a “Do Not File” file.

—Senator Frank Church, Senate Intelligence Subcommittee Hearing, 1975

Objectives

In this chapter you’ll learn:

• To use file processing to implement a business app.

• To create, write to and read from files.

• To become familiar with sequential-access file processing.

• To use classes StreamWriter and StreamReader to write text to and read text from files.

• To organize GUI commands in menus.

• To manage resources with Using statements and the Finally block of a Try statement.

Outline

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required