Thread: Deleting a file in windows

  1. #1
    Person Man
    Guest

    Deleting a file in windows

    I need to know how to delete a file in a windows program, without using the system() function. It works that way, but it also switches away from my program. I'm using allegro in a full screen mode, so that's really annoying when it does that. Are there any functions specifically for that, or are there any functions that work the same as system() but work correctly under windows?

  2. #2
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    DeleteFile(filename);
    zen

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. opening empty file causes access violation
    By trevordunstan in forum C Programming
    Replies: 10
    Last Post: 10-21-2008, 11:19 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  4. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM