Say this file gets cleared or someone manually edits it and breaks it. Is there a way to trap the error? I've tried try-catch blocks on the properties, but it throws the error within the try-catch block.
I figure I could try to read the file as XML first. If it fails, simply remove it. But, the folder name where it's stored doesn't make that easy (unless someone knows where I can pull that info).
I realize this isn't a very common issue, but it'd be nice to be able to resolve it within the code. That way I don't have to tell the user to delete the file.
Thanks
I figure I could try to read the file as XML first. If it fails, simply remove it. But, the folder name where it's stored doesn't make that easy (unless someone knows where I can pull that info).
I realize this isn't a very common issue, but it'd be nice to be able to resolve it within the code. That way I don't have to tell the user to delete the file.
Thanks