1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

file.open

Discussion in 'C' started by felixfan, Mar 7, 2008.

  1. felixfan

    felixfan New Member

    Joined:
    Jan 21, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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();
     
  2. param

    param New Member

    Joined:
    Jan 18, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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
     

Share This Page