标签:write nal block transform tput tac public blog not
package com.mxf.date0725; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; public class IpTransform { public static void main(String[] args) { String data = "Hello world"; File file = new File("D:/1.txt"); FileOutputStream output = null; try { if (!file.exists()) { file.createNewFile(); } output = new FileOutputStream(file); output.write(data.getBytes()); output.flush(); output.close(); } catch (FileNotFoundException e) { System.out.println("Exception = " + e); } catch (IOException e) { System.out.println("Exception2 = " + e); } finally { try { output.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }
http://www.jb51.net/article/47062.htm
标签:write nal block transform tput tac public blog not
原文地址:http://www.cnblogs.com/snowwhite/p/7237223.html