Microsoft Visual J++. Java


FileInfo - 2


//

else

{

// ,

if(fl.isDirectory())

System.out.println("File " + sFilePath +

" is directory");

 

else if (fl.isFile())

System.out.println("File " + sFilePath +

" is file");

 

//

System.out.println(

"Parent: " + fl.getParent() +

"\nLength: " + fl.length() +

"\nRead op. available: " + fl.canRead() +

"\nWrite op. available: " + fl.canWrite());

}

 

System.out.println("Press <Enter> to terminate...");

System.in.read(bKbdInput);

}

catch(Exception ioe)

{

System.out.println(ioe.toString());

}

}

}