import java.io.*;
import java.util.*;
public class du
{
private final static int num[] = new int[2],age[]=new int[2];
private final static String name[]=new String[2];
public static void main(String[] args) throws Exception {
Scanner scanner=new Scanner(System.in);
//建立一个RandomAccessFile 文件对象用于追加
RandomAccessFile in=new RandomAccessFile("D:\\do.txt","rw");
InputStreamReader ir=new InputStreamReader(System.in);
BufferedReader du;
for(int i=0;i{
//先计算出文件filename的长度
long filename=in.length();
//每次读取将指针放到上一次的文本的末尾便于追加
in.seek(filename);
System.out.print("please input number : ");