Writing to memory instead of FILE

From: Anders Thomsen (junk_at_mexp.dk)
Date: 04/29/04


Date: 29 Apr 2004 06:56:45 -0700


(Using MS VC++ 6.0)

In a lib file I have a method that takes a FILE as parameter. The
method writes some text to this file. I don't need the text in a file
but in a variable.
So how can I make the method write to a buffer insted of a file on a
disk?

Thanks,
Anders Thomsen