Maybe a #NIL as length could mean that should read the bytes until it reach the end of file or the end of the universe.

Code: Select all
size =FileSize("myfilename")
fh=OpenFile(Nil,"myfilename")
mystring=ReadString(fh,size)
CloseFile(1)
Code: Select all
mystring=FileToString("myfilename")