I got an error of Permission denied when try to write-open a c code file in perl script. but if I try to read-open the c code file, it works. I check my permission with right clicking the c file and then properties-security, see that I have both read and write permission. What`s more strange is that if I open the c file in notepad, I can read and write to it, but when I use notepad++, it does not work, it just can read, not write.
Thanks in advance.
help~~
Err.. you are right, it´s read only, seems that it´s a stupid question…anyway, thank you for all your help, nice day!
It sounds like the file may be locked by a process. You can use Sysinternals Process Explorer to determine which process, if any, is locking the file.
Choose
Find -> Find Handle or DLL...and search for the file name.