1. Open files, close directories, and read files
opendir closedir readdir
Run
2. Create directory mkdir喎?http://www.Bkjia.com/kf/ware/vc/" target="_blank" class="keylink">vcD4KPHA+PGltZyBzcmM9"http://www.2cto.com/uploadfile/Collfiles/20140303/20140303094606311.png" alt="">
Run
Created successfully!
Similarly, the function to delete a directory is rmdir
3. Change the current directory
chidir
Get the current directory getcwd
Code
Run
4. Open files, write files, delete files
fopen fwrite unlink
a: Open for writing
Open test file
Success!
Next is the test of deleting files
Test