This is my input text file "hello.txt" in hex:
00 00 68 65 6C 6C 6F
Which is basically "hello" with two null bytes before it.
I want to read 7 bytes starting from the beginning of the file then print out the results, so I would expect to get a couple null bytes and the word "hello"
I tried
$file = FileOpen("hello.txt", 1)
$line = FileRead($file, 7)
ConsoleWrite($line)
But nothing was printed out.
It seems like the null bytes cause problems. Why does that happen?
EDIT: ah, I l