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
[example]Reading files one byte at a time
Moderator: MSandro
Re: [example]Reading files one byte at a time
Thanks for the example!
Yes, if "read byte" returns nil, it means you've gotten to the end of the file.
Yes, if "read byte" returns nil, it means you've gotten to the end of the file.