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
hexadecimal to decimal conversion function(Javascript)
Create a directory(Powershell)
flickering form effect(VB)
text effect(Javascript)
IP address to host name(PHP)
Random letters(PHP)
remote host information(C Sharp)
Log on as different user(VB)

    




Copyright © 2003 by programmershelp.co.uk