| new RandomAccessFile ( path, mode ) | ใช้สร้าง Object RandomAccessFile |
|---|
method:new RandomAccessFile ( path, mode );
return type:RandomAccessFile
content:ใช้สร้าง Object RandomAccessFile
example:String path_file = new String ( "C:/bamboo.txt" ); RandomAccessFile random_access_file = new RandomAccessFile ( path_file, "r" );
comment:mode คือกำหนดว่าอ่านได้อย่างเดียว ( r ) หรือทั้งอ่านและเขียนได้ ( rw )