当前位置:网站首页>[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();
边栏推荐
- 7 pratiques devops pour améliorer la performance des applications
- Kafaka技术第一课
- LeetCode 练习——206. 反转链表
- Thesis reading_ Chinese NLP_ LTP
- Career advancement Guide: recommended books for people in big factories
- Mask wearing detection based on yolov3
- Disorganized series
- Leetcode daily question: merge two ordered arrays
- To solve the problem of "double click PDF file, pop up", please install Evernote program
- IDEA 项目启动报错 Shorten the command line via JAR manifest or via a classpath file and rerun.
猜你喜欢
随机推荐
Compared with the loss of Wenxin, the performance is improved a lot
Thesis reading_ Medical NLP model_ EMBERT
EPM相关
flask接口响应中的中文乱码(unicode)处理
毫无章法系列
Delete some elements in the array
Matlab reference
Tita performance treasure: how to prepare for the mid year examination?
What are the requirements for PMP certification? How much is it?
Force deduction solution summary 729- my schedule I
Is it safe to open an account online? What is the general interest rate of securities financing?
Ordinary programmers look at the code, and top programmers look at the trend
Clickhouse (03) how to install and deploy Clickhouse
MySQL之知识点(六)
使用QT设计师界面类创建2个界面,通过按键从界面1切换到界面2
Thesis reading_ Chinese NLP_ LTP
Cartoon: how to multiply large integers? (integrated version)
ICML 2022 | Meta提出鲁棒的多目标贝叶斯优化方法,有效应对输入噪声
统计php程序运行时间及设置PHP最长运行时间
MATLAB查阅









