- 3
- 0
- 约2.51万字
- 约 72页
- 2017-06-03 发布于湖北
- 举报
import java.io.*; public class FileInputS2 { public static void main(String[] args)throws IOException { FileInputStream fin=new FileInputStream(d://c.txt); byte[] b=new byte[fin.available()]; int n=fin.read(b); String s=new String(b,0,n); System.out.print(s); fin.close(); } } mport java.io.*; public class FileOUt { public static void main(String[] args)throws IOException { FileOutputStream fout=new FileOutputStream(d:\\123.txt,true); String s1=hello java; String s2=你好!; fout.write(s1.getBytes()); fout.write(s2.getBytes()
原创力文档

文档评论(0)