Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Delete Files

0 views
Skip to first unread message

Dirk Bellemans

unread,
Nov 18, 1997, 3:00:00 AM11/18/97
to

Use the static member function CFile::Remove. Please refer to Visual C++
help documentation for examples and details.

You need to close the file before deletion, of course.

Please note that I do not endorse excessive cross-posting. Thank you.

--
Dirk Bellemans, native language Dutch
D dot Bellemans at company-benelux dot "Code for Belgium"
"Code for Belgium" = be
(standard disclaimer)

FRIT...@eatns1.et.tu-dresden.de wrote in message
<3471E2...@eatns1.et.tu-dresden.de>...
>How can I delete a File, that is stored with my programm, with a
>function in my programm ?


FRIT...@eatns1.et.tu-dresden.de

unread,
Nov 18, 1997, 3:00:00 AM11/18/97
to

How can I delete a File, that is stored with my programm, with a
function in my programm ?

Thank you for help
Michael Fritzsche

Chris Marriott

unread,
Nov 18, 1997, 3:00:00 AM11/18/97
to

In article <64ros4$iuq$1...@news0.skynet.be>, Dirk Bellemans
<Lo...@My.Signature> writes

>Use the static member function CFile::Remove. Please refer to Visual C++
>help documentation for examples and details.

.... or the "DeleteFile" Win32 API, or the "_unlink" C RTL function, or
probably any one of several other methods!

Chris

----------------------------------------------------------------
Chris Marriott, Microsoft Certified Solution Developer.
SkyMap Software, U.K. e-mail: ch...@skymap.com
Visit our web site at http://www.skymap.com

Ray Wallace

unread,
Nov 18, 1997, 3:00:00 AM11/18/97
to

FRIT...@eatns1.et.tu-dresden.de wrote:

> How can I delete a File, that is stored with my programm, with a
> function in my programm ?

One way:
int _unlink( const char *filename );

Another way:
int remove( const char *path );


John A. Grant

unread,
Nov 18, 1997, 3:00:00 AM11/18/97
to
>How can I delete a File, that is stored with my programm, with a
>function in my programm ?
Assuming you're using C/C++, you would do it exactly the same as
you would do it on any other computer, any other operating system,
using the ANSI C function:
remove("filename");
(or 'unlink')


--
John A. Grant * I speak only for myself * jag...@znrcan.gc.ca (remove
'z')
Airborne Geophysics, Geological Survey of Canada, Ottawa
If you followup, please do NOT e-mail me a copy: I will read it here.


PJ Naughter

unread,
Nov 18, 1997, 3:00:00 AM11/18/97
to

On Tue, 18 Nov 1997 10:44:55 -0800, FRIT...@eatns1.et.tu-dresden.de
wrote:

>How can I delete a File, that is stored with my programm, with a
>function in my programm ?
>

>Thank you for help
> Michael Fritzsche


Try the cunningly hidden DeleteFile API.


'''
@ @
+========================ooO-(_)-Ooo=================================+
| PJ Naughter |
| |
| Software Developer Email: p...@indigo.ie |
| Softech Telecom URL: http://indigo.ie/~pjn |
| Mail: Cahore, |
| Author of DTime - A Collection Ballygarret, |
| of Date & Time classes for MFC Gorey |
| And Co. Wexford |
| Notpad, a replacement Notepad Ireland |
| for Windows 95 and NT 4 |
| |
+====================================================================+

0 new messages