how to delete a file?URGENT!!!!!

This is a discussion on how to delete a file?URGENT!!!!! within the C Programming forums, part of the General Programming Boards category; How can I delete a file with my programme? (in C and under DOS) the command int system(....); does not ...

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    how to delete a file?URGENT!!!!!

    How can I delete a file with my programme?
    (in C and under DOS)
    the command
    int system(....);
    does not work!
    HELP!!

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Q19.16
    Code:
    #include <stdio.h>
    int remove(const char *pathname);
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Delete Function in Doubly Linked List
    By Dampecram in forum C Programming
    Replies: 5
    Last Post: 11-15-2008, 03:30 PM
  2. BST delete again, but this time I think I'm close
    By tms43 in forum C++ Programming
    Replies: 9
    Last Post: 11-05-2006, 05:24 PM
  3. delete and delete []
    By Lionel in forum C++ Programming
    Replies: 8
    Last Post: 05-19-2005, 01:52 PM
  4. why is this prog crashing on delete?
    By Waldo2k2 in forum Windows Programming
    Replies: 2
    Last Post: 12-04-2002, 10:17 PM
  5. Problem need help
    By Srpurdy in forum C++ Programming
    Replies: 1
    Last Post: 07-24-2002, 12:45 PM

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