36-Reading Text Files

0
424

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:

Example of Encoding File:

Readers might read also:

 

Facebook Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here

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