you can have a corrupted file in your folder so you are just overcome the error mean to use exception handling and try to give a small message
means to avoid the program stopping when error occurs also.
by using of system exception handling you can done that
here there is any possibulity do u undestand the error just catch that error only.
otherwise you should use system exception
all code put in try{
}
catch(exception ee)
{
c.w(ee.message);//if you want to know the error position and directory and other so many properties could be in exceptions class
those are stacktrace,source
c.w(ee.source);
c.w(ee.stacktrace");
}
paritala.ramanjaneyulu