当前位置:网站首页>[BeanShell] there are many ways to write data locally
[BeanShell] there are many ways to write data locally
2022-07-05 17:52:00 【bulabula2022】
Method 1:
FileWriter fstream = new FileWriter("E:\\JENKINS automation \\msg.txt",true);
BufferedWriter out = new BufferedWriter(fstream);
out.write(" The result is :"+vars.get("biz_order_no_1")+" Multiple variable results can be connected "+"\n");
out.close();
fstream.close();
Method 2:
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
String orderToken= vars.get("orderToken");
FileWriter fw=new FileWriter("C:\\Users\\Damai\\Desktop\\sd_script\\or.txt",true);
BufferedWriter out=new BufferedWriter(fw);
out.write(orderToken.replace("\"","")+",\r\n");
out.close();
边栏推荐
- Oracle recovery tools -- Oracle database recovery tool
- ELK日志分析系统
- Tkinter window preload
- Why is February 28 in the Gregorian calendar
- Is it safe for China Galaxy Securities to open an account? How long can I buy stocks after opening an account
- 基于YOLOv3的口罩佩戴检测
- Ten capabilities that cyber threat analysts should have
- ICML 2022 | Meta propose une méthode robuste d'optimisation bayésienne Multi - objectifs pour faire face efficacement au bruit d'entrée
- GFS distributed file system
- SQL Server(2)
猜你喜欢
Zabbix
leetcode每日一练:旋转数组
职场进阶指南:大厂人必看书籍推荐
Leetcode daily question: the first unique character in the string
"Xiaodeng in operation and maintenance" is a single sign on solution for cloud applications
Redis基础
What are the requirements for PMP certification? How much is it?
RSE2020/云检测:基于弱监督深度学习的高分辨率遥感图像精确云检测
Leetcode daily practice: rotating arrays
Mongodb (quick start) (I)
随机推荐
Force deduction solution summary 729- my schedule I
力扣解法汇总1200-最小绝对差
每日一练:关于日期的一系列
Tita performance treasure: how to prepare for the mid year examination?
神经网络自我认知模型
Disabling and enabling inspections pycharm
Tkinter window preload
ITK Example
查看自己电脑连接过的WiFi密码
提高应用程序性能的7个DevOps实践
Kafaka technology lesson 1
GFS distributed file system
Cartoon: looking for the k-th element of an unordered array (Revised)
How awesome is the architecture of "12306"?
c#图文混合,以二进制方式写入数据库
ISPRS2022/云检测:Cloud detection with boundary nets基于边界网的云检测
Read libco save and restore the on-site assembly code
Independent development is a way out for programmers
漏洞复现----48、Airflow dag中的命令注入(CVE-2020-11978)
Please tell me why some tables can find data by writing SQL, but they can't be found in the data map, and the table structure can't be found