Share via


File specified by FileName does not use the encoding specified by FileEncoding

An attempt has been made to read from a file, but the specified encoding is not used by the file.

To correct this error

  • Check to make sure you are supplying the correct file encoding.

See Also

Tasks

How to: Read From Text Files in Visual Basic

Concepts

File Encodings

Reference

My.Computer.FileSystem.ReadAllText Method

My.Computer.FileSystem Object