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

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

These videos are so simple and easy to understand! I'm so glad you make them :)

CienaGoat
Автор

Can you do a lesson on saving and loading objects with serialization? That would help me out a lot with the application I'm currently working on. I can't figure out how to save child-objects within the parent class I'm trying to save. Thanks!

kevnar
Автор

Thank you so much, Kevin. Your videos are wonderful.
Is there a way (using StreamWriter/StreamReader) to create text files so that entries are lined up, i.e., write/read to a certain column using tabs?

benzandi
Автор

Hi there, your videos are great. Do you have anything on Random Access Files?

laura-jadebrooks
Автор

will be perfect if you have a similar video for handling excel files thru vb.net

alirezataghdisi
Автор

are you planning or do you have a video about using sql code/query's to connect to a database within VB.Net? That would come in handy for my upcoming project. Thanks

cooper_gaming
Автор

I have a project I am working on; is there a way to link a Basiclabel (meter) to a log file that's on the same computer and display the value on the Basiclabel?

georgecormier
Автор

What if the user wantes to organize data like for example, nfl teams by total passing yards, total rushing yards and total points for a whole season? Would i need a txt file for each of those statistics? And can i write code to chose which team had the most

ItsVxctor
Автор

hi i follow your video from begging in this lesson using with array i m getting this error massage "Index was outside the bounds of the array." and i using the same code as you using in this lesson .

naspat
join shbcf.ru