Re: Proper way to work with huge binary files

2012-01-24 Thread Jonathan M Davis
On Tuesday, January 24, 2012 15:53:48 C wrote: > Hello all. > After a quick recce on the main D site I couldn't find a how-to for large > binary files. > > Suppose I'm using an old machine with limited memory, and I want to compute > the MD5 hash of a 4 GB file. > Do I need to buffer the input as

Re: Proper way to work with huge binary files

2012-01-24 Thread Justin Whear
On Tue, 24 Jan 2012 15:53:48 +, C wrote: > Hello all. > After a quick recce on the main D site I couldn't find a how-to for > large binary files. > > Suppose I'm using an old machine with limited memory, and I want to > compute the MD5 hash of a 4 GB file. > Do I need to buffer the input as i

Proper way to work with huge binary files

2012-01-24 Thread C
Hello all. After a quick recce on the main D site I couldn't find a how-to for large binary files. Suppose I'm using an old machine with limited memory, and I want to compute the MD5 hash of a 4 GB file. Do I need to buffer the input as in C++? And how should I check for exceptions? Example code m