Re: missing 13; upload script

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

From get_bytes  notes:


   include get.e


              
              integer fn
              fn = open("temp", "rb")  -- an existing file
              
              sequence whole_file
              whole_file = {}
              
              sequence chunk
              
              while 1 do
                  chunk = get_bytes(fn, 100) -- read 100 bytes at a time

                  whole_file &= chunk        -- chunk might be empty, that's ok
                  if length(chunk) < 100 then
                      exit
                  end if
              end while
              
              close(fn)
              ? length(whole_file)  -- should match DIR size of "temp"


Does this happen ? size match I mean.
Don Cole

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

Search



Quick Links

User menu

Not signed in.

Misc Menu