标签:
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
public class Test02 {
public static void main(String[] args) throws IOException {
FileOutputStream fos=new FileOutputStream("D:\\新建文件夹\\aaa.txt");
String write="^^^^^^^^^^^^^^^^^^^^^^^^^^";
byte bytes[]=write.getBytes();
fos.write(bytes);
System.out.println("写入成功");
}
}
标签:
原文地址:http://www.cnblogs.com/zqsheng/p/5200679.html