how to delete a file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marc Schellens

    how to delete a file

    How can I delete a file in C++?
    thanks,
    marc

  • Marc Schellens

    #2
    Re: how to delete a file

    Rob Williscroft wrote:[color=blue]
    > Marc Schellens wrote in news:3F132491.5 070901@hotmail. com:
    >
    >[color=green]
    >>How can I delete a file in C++?
    >>thanks,
    >>marc
    >>
    >>[/color]
    >
    >
    > #include <cstdio>
    >
    > int main()
    > {
    > std::remove("fi lename.ext");
    > }
    >
    > HTH[/color]

    thanks, it did.
    But isn't there a pure C++ way?
    As I understood, cstdio is deprecated.

    marc

    Comment

    Working...