From: Eric Hodel Date: 2008-10-02T17:36:27+09:00 Subject: Re: Mirroring large files over HTTP On Oct 2, 2008, at 01:03 AM, Lars Haugseth wrote: > Turns out the OpenURI module is indeed fetching the remote resource > in segments and storing to a temporary file. However, my code above > will read the complete contents of that file into memory before > writing it back out to another file. > > I'm a little surprised not to find any convenience method in the > standard > libraries doing all this for me, though. Why? It's all of one line: output.write input.read(16384) until input.eof?