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

Deleting and creating text files in C++

Discussion in 'C++' started by Andres, Aug 7, 2008.

  1. Andres

    Andres New Member

    Joined:
    Jul 22, 2008
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    0
    How can you create a text file, write info in it, and then delete it. I know how to wright into it or extract info out of it, but I really don't know the code for creating or deleting txt files. Can someone please help me?
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    Check the API DeleteFile for Windows. If you are using linux I am not sure about it.
     

Share This Page