|
@ -1,21 +0,0 @@ |
|
|
package com.bfd.mf.job.util; |
|
|
|
|
|
|
|
|
|
|
|
import java.io.FileWriter; |
|
|
|
|
|
import java.io.IOException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Created by BFD-229 on 2017/7/6. |
|
|
|
|
|
*/ |
|
|
|
|
|
public class WriteMethod { |
|
|
|
|
|
public static void writeMethod(String fileName, String json){ |
|
|
|
|
|
try{ |
|
|
|
|
|
FileWriter writer=new FileWriter(fileName,true); |
|
|
|
|
|
writer.write(json+"\n"); |
|
|
|
|
|
writer.close(); |
|
|
|
|
|
} catch (IOException e) |
|
|
|
|
|
{ |
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|