RandomAccessFile rf = new RandomAccessFile("D:\\123.txt","rw");
String s;
s=rf.readLine();
String[] t = s.split("\n");
for (int i = 0; i < t.length;i++)
{
a[i]=t[i];
System.out.println(t[i]);
}
rf.close();
输出还是只有文本文件中的第一行