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 ?
Thank you for help
Michael Fritzsche
.... 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
> 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 * 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.
>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 |
| |
+====================================================================+