Reading Data from a file

wypman

New member
Joined
Jun 27, 2006
Messages
4
Programming Experience
Beginner
I am new to VB.NET 2005 and for my first efforts I'm trying to open a data file reading it a byte at a time, converting each byte to its ASCII value in Hex (This is so I can identify non-printable characters as well in the data).

Using a normal Filestream when I specify the characters it does not report it's true ASCII value for non-printable characters.

Any pointers to get me started would be appreciated.
 
Last edited:

wypman

New member
Joined
Jun 27, 2006
Messages
4
Programming Experience
Beginner
I've sorted the problem now thanks.

Using the following piece of code.

VB.NET:
ReturnValue = My.Computer.FileSystem.ReadAllBytes(sFileName)

It loads the data into a byte array so I can work with the data from there. Unless someone knows a better solution? :rolleyes:
 
Top Bottom