Thread: How to delete a File?

  1. #1
    Registered User nag's Avatar
    Join Date
    May 2002
    Posts
    22

    How to delete a File?

    While reading File Handling in C i came acroos the programs which copy files by inputing file name and required file Bu i wonder that there is no example how to Delete a file???
    --so i want to know how to delete a file like we delete files in DOS--

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Try
    >remove ("file.txt");
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Registered User methodmza's Avatar
    Join Date
    May 2002
    Posts
    8
    we made a little move function in C. used unlink and link. could try looking them up. i cant remember exactly how to use them.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 04:27 PM
  3. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  4. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM