当前位置:网站首页>[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();
边栏推荐
- Which platform of outer disk gold is regular and safe, and how to distinguish it?
- 2022 information system management engineer examination outline
- 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
- Cartoon: looking for the k-th element of an unordered array (Revised)
- Interpretation: how to deal with the current security problems faced by the Internet of things?
- Ten capabilities that cyber threat analysts should have
- Oracle recovery tools -- Oracle database recovery tool
- MySQL之知识点(六)
- This 17-year-old hacker genius cracked the first generation iPhone!
- MATLAB查阅
猜你喜欢

MySQL之知识点(六)

基于YOLOv3的口罩佩戴检测

Abnormal recovery of virtual machine Oracle -- Xi Fenfei

Leetcode daily question: merge two ordered arrays

MySQL之知识点(七)

Leetcode daily question: the first unique character in the string

VBA drives SAP GUI to realize office automation (II): judge whether elements exist

ISPRS2020/云检测:Transferring deep learning models for cloud detection between Landsat-8 and Proba-V

论文阅读_中文NLP_LTP

Kafaka technology lesson 1
随机推荐
提高應用程序性能的7個DevOps實踐
Teamcenter 消息注册前操作或后操作
MySQL之知识点(六)
ICML 2022 | Meta提出鲁棒的多目标贝叶斯优化方法,有效应对输入噪声
Tkinter window preload
EPM相关
Cartoon: how to multiply large integers? (next)
证券网上开户安全吗?证券融资利率一般是多少?
rsync
LeetCode每日一题:合并两个有序数组
Leetcode daily practice: rotating arrays
解决“双击pdf文件,弹出”请安装evernote程序
Sentinel flow guard
Thesis reading_ Chinese NLP_ LTP
Force deduction solution summary 729- my schedule I
Interpretation: how to deal with the current security problems faced by the Internet of things?
GFS分布式文件系统
Compared with the loss of Wenxin, the performance is improved a lot
ITK Example
Teamcenter 消息注册前操作或後操作