Java in 8 Hours

Page 323

File Class File class is used to display the property of file, to check the file existence, writable, readable, to rename the file‌‌ File f = new File (file-name); // create a file object f.exists(); // check existence f.canRead( ); // check readable f.canWrite( ); // check writable f.isfile( ); // check if is a file


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.
Java in 8 Hours by Abdul Gafoor Tp - Issuu