[TriLUG] c++ - how to rename files

Owen Berry oberry at trilug.org
Mon Dec 12 11:43:18 EST 2005


'man 2 rename' should tell you all you need to know.

Owen

On Mon, 2005-12-12 at 11:14 -0500, Mark Freeze wrote:
> Can anyone throw me a tip and tell me how to rename files in a c++
> program?
> 
> What I want to do is have file1.txt renamed to file1_old.txt, then open
> file1_old.txt for input, and file1.txt for output.
> 
> Thanks,
> Mark.




More information about the TriLUG mailing list