Re: out of memory, even tho remembered nothing!
- Posted by useless_ Oct 18, 2012
- 1532 views
jimcbrown said...
eukat said...
Well, anyhow, this fails to run properly also:
junk = gets(readfile) while sequence(junk) do size += length(junk) puts(1,sprintf("%d",size)&"\r") junk = gets(readfile) end while
I just tried this, and it appears to work correctly for me. It gets the number of bytes in the file and reports it correctly, and then quits.
What behavior is it exhibiting for you that causes you to declare that it has failed?
It read a gigabyte past the end of the file again. Eu version 4.0.4.
useless