hi! how do i know if i accessed the file successfully on my res folder?
InputStream in = getClass().getResourceAsStream("filename");
if(in!=null)
{
// display TRUE if accessed
}
else
{
//display FALSE if not accessed
}
is this correct?
and what is the proper way of accessing the file?
getResourceAsStream("filename");
or
getResourceAsStream("/filename"); // with slash
thanks?

Reply With Quote

