D
Dan
Maybe the title is a little misleading, but I don't know a better way
of putting it.
What I would like to do, is create a file pointer that really isn't
pointing to an actual file on disk, but a string in memory. In other
words whatever is being written to the file is actually being written
to a string instead.
Is there any straight forward way of doing this.
The reason that I ask, is the code I want to use this with, is gonna
have to be completely re-written if I want it to write to a string. It
isn't straight forward in writing to the file from one function, but it
is a series of functions that it calls passing the file pointer each
time to where it finally actually writes to it.
of putting it.
What I would like to do, is create a file pointer that really isn't
pointing to an actual file on disk, but a string in memory. In other
words whatever is being written to the file is actually being written
to a string instead.
Is there any straight forward way of doing this.
The reason that I ask, is the code I want to use this with, is gonna
have to be completely re-written if I want it to write to a string. It
isn't straight forward in writing to the file from one function, but it
is a series of functions that it calls passing the file pointer each
time to where it finally actually writes to it.