07-16-2008, 02:49 PM
|
#5 (permalink)
|
|
The Acquainted
Join Date: May 2008
Posts: 175
Thanks: 9
|
Hmm, in the case that you describe, it may actually be better to do a nested situation for proper error handling.
ie
if (changeDirectory())
{
deleteFile();
}
else
{
// an error occured changing to the correct directory.
}
I am not sure what the error rate is on changing directories (if there is one at all), but this is just good coding practices :D
__________________
There are No Stupid Questions. But there a LOT of Inquisitive Idiots.
|
|
|