|
-
Dec 6th, 2012, 12:45 PM
#29
Re: Permission Denied When Trying To Delete A File
 Originally Posted by jdc2000
I agree - post the actual path you are using for the file. That would be helpful.
I'm not sure why you guys won't listen. It has nothing to do with the permissions of the path.
Also, I just resolved the issue. The MainMethod opens up the XML file to retrieve the data. If a condition is met, it sends a part of that data to the DeletionMethod. The DeletionMethod uses that data to delete lines from the file. The problem, was that I was opening the file in the MainMathod, passing the data to the deletion method, but not closing the file from the MainMethod until after the DeletionMethod was called. It works now.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|