I am currently reading information from a binary file. Whenever I do a ReadChars on the binary reader, I do not get a closing quote.
For example (br is the instantiated BinaryReader):
tData1 will hold correct data.
tData2 will have something like "Example
There is no closing quote to the variable. This is very strange and causes problems later on when I try to see if this variable is equal to something else. It will always fail... "Example" <> "Example
Anyone know what's going on here?
Thanks
For example (br is the instantiated BinaryReader):
Code:
Dim tData1 As Int32 = br.ReadInt32 [COLOR=green]'Works[/color]
Dim tData2 As String = br.ReadChars(15) [COLOR=green]'Get 15 characters[/color]
tData1 will hold correct data.
tData2 will have something like "Example
There is no closing quote to the variable. This is very strange and causes problems later on when I try to see if this variable is equal to something else. It will always fail... "Example" <> "Example
Anyone know what's going on here?
Thanks