I have a template for a certain type of file that i'm trying to read. Basically the file is should have a header of 80 bytes that are ASCII text giving the files name. After that its a series of 2 byte numbers which I can read fine.
however when I try and extract the name from the file it never works, the string is always nothing. Here is my code
Dim nFileNum As Integer = FreeFile()
FileOpen(nFileNum, File, OpenMode.Binary, OpenAccess.Read, OpenShare.LockReadWrite)
Dim FileName As String
FileGet(nFileNum, FileName, 1, False)
If Not FileName Is Nothing Then
dd("Model #" & (Me.MeshIndex + 1))
Please ignore the fact that I'm trying to convert a string into a string when addin the combo box. This is there only becuase I have tried changing FileName to different variable types like byte()
Here is a link to the file type:
its right at the bottom.
Any help would be much appreciated.