|
Mark Meijer wrote:
Hi all,For some reason, reading in an entire file, for example with simple test code like this, doesn't appear read the whole file:local file = io.open("infile", "r"); if(file) thenlocal data = file:read("*a"); -- i've also tried "*all" as described in PILfile:close(); file = io.open("outfile", "w"); if(file) then file:write(data); file:close(); end end
Try "rb" and "wb" as the 2-nd parameter to io.open(). -- Shmuel