1.RandomAccessFile类1.使用RandomAccessFile访问文件的部分内容importjava.io.RandomAccessFile;publicclassRandomAccessFile1{publicstaticvoidmain(String[]args)throwsException{Personp=newPerson(1,"hello",5.42);RandomAccessFileraf=newRandomAccessFile("test.txt","rw")...
查看全文