| createNewFile() | ใช้ สร้าง file ใหม่ โดยถ้าสร้างสำเร็จจะคืนค่า true มาให้ |
|---|
method:createNewFile ();
return type:boolean
content:ใช้ สร้าง file ใหม่ โดยถ้าสร้างสำเร็จจะคืนค่า true มาให้
example:File file = new File ( "C:/bamboo.txt" ); if ( file.createNewFile () ) { System.out.println ( "Make File Success." ); }