Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete a File

Status
Not open for further replies.

areric

Programmer
Jul 13, 2003
47
0
0
US
Hey everyone,

I have a database which is storing some information about files. Amoung that information is the full path to the file in the format \\servername\directory

If i have a file in that format that i want to delete how can i do this? Do i use some sort of system call or is there an unlink function?

Im using VS6.0 and c++
 
you may use ANSI function unlink

Ion Filipski
1c.bmp
 
unlink() is not ANSI function. Corresponding ANSI function is remove().
 
right, by mistake, I wanted to say POSIX, anyway, you may usi this function under both, windows and Linux.

Ion Filipski
1c.bmp
 
There is an ANSI/ISO function to remove a file, "remove" <stdio.h>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top