File file=new File("D:/demo.txt");
DataOutputStream dos=new DataOutputStream(new FileOutputStream(file));
dos.writeChars("世界");
DataInputStream dis=new DataInputStream(new FileInputStream(file));
String s=null;
while(dis.readChar()!=-1){
s+=dis.readChar();
};
System.out.println(s);
qq_岁月静好与君语_0
相关分类