import org.json.JSONObject;
//写入文件
//本地存储文件路径
FileWriter fs=new FileWriter("D:/apache-jmeter-5.1.1/bin/token.csv",true);
BufferedWriter out=new BufferedWriter(fs);
//提取出来的token,并通过,换列
out.write("${sessionStr}");
out.write(",");
out.write("${userId}");
out.write(",");
out.write("${firmId}");
out.newLine(); // 添加换行符
out.close();
fs.close();