Intermediate VB.NET Programming Lesson 7. More about StreamReader and StreamWriter



Intermediate VB.NET Programming Lesson 7. More about StreamReader and StreamWriter

Intermediate VB.NET Programming Lesson 7. More about StreamReader and StreamWriter

This is the seventh in a series of computer science video tutorials for intermediate Visual Basic programmers who have completed the beginner’s series of video tutorials or are already familiar with the VB.NET syntax for the fundamental programming constructs. In this lesson you will learn more about the StreamReader and StreamWriter objects. You will learn how to read an entire text file into a single string variable with the ReadAll method, and how to read a text file a character at a time using the Read and Peek methods. This lesson includes solutions to some exercises that were suggested in the previous lesson of this series. These include writing data from one or two dimensional array variables out to an external text file, and reading data from an external text file back into a one or two dimensional array. You will also see how to copy data, selectively, from one text file to another.

Chapters:
00:00 Review of StreamWriter and StreamReader
02:59 Read all of a text file at once with ReadAll
03:44 Read one character at a time with Read
05:16 Write a one dimensional array out to a text file
06:55 Read a text file into a one dimensional array
07:58 Write a two dimensional array out to a text file
09:49 Read a text file into a two dimensional array – method 1
14:55 Read a text file into a two dimensional array – method 2
17:27 Copy from one text file to another

Comments are closed.