Re: in-memory files?
Re: in-memory files?
- Subject: Re: in-memory files?
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 20 Aug 2001 00:48:04 -0700
On Sunday, August 19, 2001, at 11:20 PM, R. Tony Goold wrote:
Ah, I see! I misunderstood you, and read it as you wanting to treat a
file as a chunk of memory rather than the other way around.
sprintf() and snprintf() are C functions you can use to print into a
memory buffer, analogous to printf().
Thanks, but that's still not it. The situation is that there is code I
want to re-use that wants to write to an open file descriptor, (using
fwrite(), fprintf(), etc.) and I want to capture that output in memory,
rather than letting it get out to the filesystem.
-jcr (way too rusty on pipes, memory streams, and the like.)
[Objc retain];