/*每次只写入一行数据 只需要调用特定的方法即可.*/package com.second.File;import java.io.*;/** * Created by hasee on 2016/11/15. */public class WriteFile { private BufferedWriter bw = null; public int openWrite(String address, String strCodeFormat) { if (strCodeFormat == n…