Re: out of memory, even tho remembered nothing!

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu