Deleting a file in windows

This is a discussion on Deleting a file in windows within the Windows Programming forums, part of the Platform Specific Boards category; I need to know how to delete a file in a windows program, without using the system() function. It works ...

  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
    zen
    zen is offline
    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, 01:46 PM
  4. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM

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