FileReader fr=new FileReader("./line.txt");
FileWriter fw=new FileWriter("./secret.txt");
char a[]=new char[100];
int n;
if(( n=fr.read(a,0,a.length))!=-1){
        
String s=new String (a,0,a.length);
System.out.println(s);
}
fr.close();
fw.close();
在运行这段代码的时候,当定义的char型数组太小的时候,line.txt中的内容不能全部读取到secret.txt 中
请问为什么呢?