Gudday all
I am slowly finishing off a CSV data file manipulation program.
About the last step left is rename, moving and delete files.
After all the work is done I have created 2 files that need to be both renamed and moved, a file that needs to be renamed and 3 files deleted.
The files to be moved are fortunately to stay on the same HDD but go to different folders.
(I am rapidly getting of of my depth here)
I am using rename here.
When I run my program I get a permission denied error. See attachment.Code:.. if ( rename("C:/ScanImages/Debug/error.dat", "C:/ScanImages/Debug/error.txt") ) { perror( NULL ); getchar(); } ..
I am not certain what would block my permission as I thought I was in total control.
Any ideas gratefully accepted (as well as hints for moving and deleting files.)



LinkBack URL
About LinkBacks


