Hi Again,
It's me, Abdul. I want to thank all of the helpful people out there who have made my job easier. I have another question. I wanted to know how to open a folder and then read one file at a time, do something with that file, then do the same thing with the rest of the files. For instance, what if I want to automate transferring files from one folder to another? And instead of going into the folder, copying all of the files, then pasting them is the desired folder, I want to specify the two folder paths in a script and automate the transfer. How would I do this? I know fopen is used to open a file, but can it also be used to open a directory (folder)?
It's me, Abdul. I want to thank all of the helpful people out there who have made my job easier. I have another question. I wanted to know how to open a folder and then read one file at a time, do something with that file, then do the same thing with the rest of the files. For instance, what if I want to automate transferring files from one folder to another? And instead of going into the folder, copying all of the files, then pasting them is the desired folder, I want to specify the two folder paths in a script and automate the transfer. How would I do this? I know fopen is used to open a file, but can it also be used to open a directory (folder)?