Main Menu

HOME

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

US Job listings




   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
Screen size(Javascript)
check if SQL server is installed on your computer(VBScript)
Random email addresses(PHP)
Associate a file extension with an application(VB)
get the amount of colors available(VB)
SCREENSAVER ACTIVE(VB)
Count words in a sstring using Regular expressions(VB.net)
WeekDayName example(VB)

    




Copyright © 2003 by programmershelp.co.uk