标签:public cat class style 文件 pac org log and
package com.lf.fileproject; import java.io.File; import java.io.FileOutputStream; import org.junit.Test; public class Test2 { @Test public void test2() { File file = new File("d:/aSong.txt"); FileOutputStream outputStream = null; try { outputStream = new FileOutputStream(file); outputStream.write(new String("codes life").getBytes()); if (outputStream!=null) { outputStream.close(); } } catch (Exception e) { // TODO: handle exception } } }
标签:public cat class style 文件 pac org log and
原文地址:http://www.cnblogs.com/lantu1989/p/6088513.html