为什么在文件里写入一句话,却失败了呢
FileOutputStream d=new FileOutputStream("E:\\he\\4.txt");
OutputStreamWriter e=new OutputStreamWriter(d);
String s="我会发着呆,然后忘记你";
char[]l=new char[(char)s.length()];
e.write(l, 0, s.length());
FileOutputStream d=new FileOutputStream("E:\\he\\4.txt");
OutputStreamWriter e=new OutputStreamWriter(d);
String s="我会发着呆,然后忘记你";
char[]l=new char[(char)s.length()];
e.write(l, 0, s.length());
2016-02-17
举报