36-Reading Text Files


This Visual Basic Tutorial is all about Reading Text Files.
The My.Computer.FileSystem object has a method that allows you to read a text file and it is called the ReadAllText.  The encoding file can be specified if the file contains an encoding text such as ASCII or UTF-8.


You need to specify the encoding file, if you are reading from a file with extended characters.


Example of Encoding File:

Readers might read also:


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.