Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

Make money selling software. Check this out here

Hosted clickbank mall. Check this out here




   Misc

   Amazon

   Links

    


Delete a file using Unlink
 

 

 

Description

In a previous code snippet we showed how to delete afile using remove( ) but many C compilers also support the unlink() function which does the same thing.

Code


#include <stdio.h>

int main()
{
unlink("f:/cprojects/urls1.dat");

return 0;
}

Information

tested using LCC Win 32

 

 

 

Download

unlink.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
change file extensions(VB)
id of user using cookie(Javascript)
beep(Java)
free disk space using WMI(VBScript)
delay(C)
sum all of the elements in an array(C)
Load a file into a textbox(VB)
Populate a combo box(ASP)

    




Copyright © 2003 by programmershelp.co.uk