Hello everyone I'm still learning vb.net and I'm stuck on something.
This is how I attempted it but i keep just getting one little square...
I attached the dat file zipped up, its from a game called call of duty 4 and its a server list cache. Any ideas or direction would be very helpful thanks.
Code:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim fInfo As New FileInfo("servercache.dat")
Dim numBytes As Long = fInfo.Length
Dim fStream As New FileStream("servercache.dat", FileMode.Open, FileAccess.Read)
Dim br As New BinaryReader(fStream)
Dim data As Char() = br.ReadChars(CInt(numBytes))
'Dim data As Byte() = br.ReadBytes(CInt(numBytes))
Dim test As String = ""
For i = 0 To 5000
test += Convert.ToString(data(i))
Next
MsgBox(test)
br.Close()
fStream.Close()
End Sub
I attached the dat file zipped up, its from a game called call of duty 4 and its a server list cache. Any ideas or direction would be very helpful thanks.
Comment