Files and Folder

Write here if you have problems with your C source code

Moderator: Board moderators

Post Reply
User avatar
emotional blind
A great helper
Posts: 383
Joined: Mon Oct 18, 2004 8:25 am
Location: Bangladesh
Contact:

Files and Folder

Post by emotional blind » Sat May 13, 2006 8:44 am

How to do these procedures using C:
1. file copy
2. file create
3. file rename
4. file delete etc

and

1. folder copy
2. folder create
3. folder rename
4. folder delete etc

lnr
Experienced poster
Posts: 141
Joined: Sat Jun 30, 2007 2:52 pm
Location: Dhaka,Bangladesh

Re: Files and Folder

Post by lnr » Tue Oct 07, 2008 5:02 pm

To emotional blind

To delete a file

Code: Select all

remove("filename.txt");
To rename a file

Code: Select all

rename("oldname.txt","newname.txt");
To create a file

Code: Select all

FILE *fp=fopen("filename.txt","r");
To copy a file
http://www.google.com/search?hl=en&q=ho ... tnG=Search

Thanks all.

Post Reply

Return to “C”