How to delete a File?

This is a discussion on How to delete a File? within the C Programming forums, part of the General Programming Boards category; While reading File Handling in C i came acroos the programs which copy files by inputing file name and required ...

  1. #1
    nag
    nag is offline
    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, 11:39 PM
  2. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 05:27 PM
  3. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 02:19 PM
  4. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 04:30 PM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 05:10 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21