Now I could of course claim I was testing you but the pure and simple fact is I got it wrong.
Whilst I was declaring
<code>FileInfo TheFile = new FileInfo(logoPath);</code>
I was actually then doing
<code>File.Delete(logoPath);</code>
Instead of
<code>TheFile.Delete();</code>
Perhaps this is a lesson to not blog about coding on a Friday afternoon.
Hope it made you chuckle.
No comments:
Post a Comment