2014.1.16 File

1,

		RandomAccessFile raf = new RandomAccessFile("d://2.txt", "rw");
		long len = raf.length(); //获取长度
		long point = raf.getFilePointer(); //获取当前index
		raf.skipBytes(2); //跳过几个
		raf.seek(pos); //定位到哪里


2,

3,

4,

5,

你可能感兴趣的:(2014.1.16 File)