> Perhaps of interest as well, in 5.2, the load() function accepts an iterator, so the above can be rewritten as follow: > > local aChunk = assert( load( function() return aFile:read( 65536 ) end ) ) This already works in 5.1.