import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import j ava.io.IOException ; public class Test { public static void main(String[] args ) { File file = new File( "test.txt" ); try { FileOutputStream out = ____________________ ; // 创建 FileOutputStream 对象 byte [] buy = " 保护环境,人人有责。 " .getBytes(); ____________________ ; // 将数组中的内容写入文件 ____________ ; // 关闭流 } catch (Exception e ) { // 异常处理 e .printStackTrace(); } try { FileInputStream in = new FileInputStream( file ); byte [] byt = new byte [1024]; int len = ____________________ ; // 从文件中读取信息 System. out .println( " 文件中的信息是: " + new String( byt ,0, len )); in .close(); } catch (Exception e ) { // TODO Auto-generated catch block e .printStackTrace(); } } }