Jeff Ryan | 3 May 2012 00:57
Picon

Re: Quickest way to make a large "empty" file on disk?

Something like:

http://markus.revti.com/2007/06/creating-empty-file-with-specified-size/

Is one way I know of. 

Jeff

Jeffrey Ryan    |    Founder    |    jeffrey.ryan@...

www.lemnica.com

On May 2, 2012, at 5:23 PM, Jonathan Greenberg <jgrn@...> wrote:

> R-helpers:
> 
> What would be the absolute fastest way to make a large "empty" file (e.g.
> filled with all zeroes) on disk, given a byte size and a given number
> number of empty values.  I know I can use writeBin, but the "object" in
> this case may be far too large to store in main memory.  I'm asking because
> I'm going to use this file in conjunction with mmap to do parallel writes
> to this file.  Say, I want to create a blank file of 10,000 floating point
> numbers.
> 
> Thanks!
> 
> --j
> 
> -- 
> Jonathan A. Greenberg, PhD
(Continue reading)


Gmane