Page 1 of 1

[example]Reading files one byte at a time

Posted: Jan 26th, '18, 09:25
by SimpleSi
Just putting this here for anyone wanting to use the new filestream blocks to read large files

There is no end-of-file boolean available but if the byte read has a nil value then we can assume that we've read the whole file
scriptImage11.png

Re: [example]Reading files one byte at a time

Posted: Feb 9th, '18, 17:08
by JohnM
Thanks for the example!

Yes, if "read byte" returns nil, it means you've gotten to the end of the file.