Page 1 of 1

Files and Folder

Posted: Sat May 13, 2006 8:44 am
by emotional blind
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

Re: Files and Folder

Posted: Tue Oct 07, 2008 5:02 pm
by lnr
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.