Hi,
Can some help please? I need to read a two-byte int from a file at a specific position and it's not working. Here is my code:
Func getInfo()
Dim $file
Dim $pName
Dim $pAcct = 0
; open in text mode
$file = FileOpen("TEST.FIL", 0)
; Check if file opened for reading OK
If $file = -1 Then
MsgBox(0, "Error", "Unable to open test file.")
Exit
EndIf
; get name
FileSetPos($file,768,0)
$pName=FileRead($file,32)
MsgBox(1,"Test1",$pName)
FileCl