temporary file in C++
From: Scott (scott_at_nospam.com)
Date: 04/30/04
- Next message: Gary Labowitz: "Re: [C++] Omitted return statement"
- Previous message: cat_at_wp.shawcable.net: "Me biteing my budgies head off"
- Next in thread: Ulrich Eckhardt: "Re: temporary file in C++"
- Reply: Ulrich Eckhardt: "Re: temporary file in C++"
- Reply: Adam: "Re: temporary file in C++"
- Reply: B. v Ingen Schenau: "Re: temporary file in C++"
- Reply: Francis Glassborow: "Re: temporary file in C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Apr 2004 01:29:44 GMT
Hi All,
Is there a way of creating a temporary file in C++ (similar to the
tmpfile() in C)? I have a C++ object that streams output to an fstream,
and I would like that file to be temporary (i.e. deleted after it is
used). What the program is doing is writing data to a file, and then
converting that file to another file using functions in a shared library
(which only accepts an existing file for input). The first file is now
unnecessary, and I would like to delete it. Any suggestions or help would
be most appreciated.
Best,
Scott
- Next message: Gary Labowitz: "Re: [C++] Omitted return statement"
- Previous message: cat_at_wp.shawcable.net: "Me biteing my budgies head off"
- Next in thread: Ulrich Eckhardt: "Re: temporary file in C++"
- Reply: Ulrich Eckhardt: "Re: temporary file in C++"
- Reply: Adam: "Re: temporary file in C++"
- Reply: B. v Ingen Schenau: "Re: temporary file in C++"
- Reply: Francis Glassborow: "Re: temporary file in C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|