36-Reading Text Files

0
308

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 an extended characters.

 

Example:

 

 

Readers might read also:

 

Facebook Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here