只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2013-09-21 23:41 fenglie 阅读(12) 评论(0) 推荐(0)
摘要: import java.io.BufferedReader;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStreamReader;import java.io.OutputStreamWriter;import java.io.PrintWriter;public class IO { public static void main(Stri... 阅读全文
posted @ 2013-09-21 23:32 fenglie 阅读(1277) 评论(0) 推荐(0)
摘要: import java.io.File;import java.io.FileInputStream;public class FileTest { public static void main(String[] args) { FileInputStream fis = null; try { File file = new File("D://test.txt"); fis = new FileInputStream(file); byte[] b = new byte[(int)file.length()]; while (fis.read(b) != -1) { 阅读全文
posted @ 2013-09-21 23:20 fenglie 阅读(9027) 评论(0) 推荐(0)
摘要: //来源:http://www.cnblogs.com/vigarbuaa/archive/2013/01/13/2858859.html/*做一个功能验证,要用到inputStream与outputStream的转换,本以为很简单的东东搞了蛮久,从"程序员 闫帆"处取得一段代码*/package com.boco.test;import java.io.ByteArrayInputStream;import java.io.ByteArrayOutputStream;import java.io.InputStream;import java.io.OutputStrea 阅读全文
posted @ 2013-09-21 23:16 fenglie 阅读(726) 评论(0) 推荐(0)
版权所有,转载声明