View Single Post
Old 07-16-2008, 02:49 PM   #5 (permalink)
drewbee
The Acquainted
 
drewbee's Avatar
 
Join Date: May 2008
Posts: 175
Thanks: 9
drewbee is on a distinguished road
Default

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.
Send a message via AIM to drewbee
drewbee is offline  
Reply With Quote