Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   file.open (http://www.go4expert.com/forums/fileopen-t9157/)

felixfan 7Mar2008 17:06

file.open
 
how can i create several txt file with a different name? which mean that when the program is running, the "xxxxx" will change and i wan to create some files with "xxxx" name.

Thanks in advance!

Code:

file.Open("xxxxx.txt", CFile::modeCreate |
CFile::typeText | CFile::modeWrite | CFile::shareExclusive);
file.Close();


param 13Mar2008 12:29

Re: file.open
 
Hi,
you can try using file open in different names.
Use string print to the file name you need and open that patiicular file for usage...

Regards,
Param


All times are GMT +5.5. The time now is 13:42.