代码如下:
import java.io.FileWriter; import java.io.IOException; FileWriter filename = new FileWriter("./sha256.txt",true); BufferedWriter out = new BufferedWriter(filename); out.write(vars.get("mdn")+","); out.write(vars.get("sha256Mdn")+"\n"); out.close(); filename.close();