Removing Files

This is a discussion on Removing Files within the C++ Programming forums, part of the General Programming Boards category; Hi, When I want to delete a file in "C" I use the remove() function from stdio.h. How do I ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    1

    Cool Removing Files

    Hi,
    When I want to delete a file in "C" I use the remove() function from stdio.h. How do I do the same in "C++"

    Thanks for your help

    Jack

  2. #2
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    Use the remove() function from <cstdio>.
    zen

  3. #3
    Registered User Engineer's Avatar
    Join Date
    Oct 2001
    Posts
    125
    or using the same function from <stdio.h> exactly the same way as in C. C++ compilers understand C code.
    1 rule of the Samurai Code: if you have nothing to say, don't say anything at all!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. add source files to embedded VC 4.0
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 06-13-2006, 03:28 AM
  2. *.cpp and *.h files understanding
    By ElastoManiac in forum C++ Programming
    Replies: 4
    Last Post: 06-11-2006, 04:45 AM
  3. Linking header files, Source files and main program(Accel. C++)
    By Daniel Primed in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 10:46 AM
  4. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 01:41 PM
  5. header and source files
    By gtriarhos in forum C Programming
    Replies: 3
    Last Post: 10-02-2005, 03:16 AM

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