当前位置:网站首页>[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();
边栏推荐
- Cmake tutorial Step2 (add Library)
- PMP认证需具备哪些条件啊?费用多少啊?
- Zabbix
- 论文阅读_医疗NLP模型_ EMBERT
- Zabbix
- Kafaka technology lesson 1
- Action avant ou après l'enregistrement du message teamcenter
- "Xiaodeng in operation and maintenance" is a single sign on solution for cloud applications
- Career advancement Guide: recommended books for people in big factories
- RSE2020/云检测:基于弱监督深度学习的高分辨率遥感图像精确云检测
猜你喜欢

mongodb(快速上手)(一)

ICML 2022 | Meta提出鲁棒的多目标贝叶斯优化方法,有效应对输入噪声

MySQL之知识点(七)

RSE2020/云检测:基于弱监督深度学习的高分辨率遥感图像精确云检测

Matlab reference

ICML 2022 | Meta提出魯棒的多目標貝葉斯優化方法,有效應對輸入噪聲

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

Check the WiFi password connected to your computer

Daily exercise: a series of dates

Abnormal recovery of virtual machine Oracle -- Xi Fenfei
随机推荐
Tita 绩效宝:如何为年中考核做准备?
北京内推 | 微软亚洲研究院机器学习组招聘NLP/语音合成等方向全职研究员
ICML 2022 | Meta propose une méthode robuste d'optimisation bayésienne Multi - objectifs pour faire face efficacement au bruit d'entrée
数据访问 - EntityFramework集成
如何保存训练好的神经网络模型(pytorch版本)
IDEA 项目启动报错 Shorten the command line via JAR manifest or via a classpath file and rerun.
What are the requirements for PMP certification? How much is it?
Action avant ou après l'enregistrement du message teamcenter
Cartoon: a bloody case caused by a math problem
漏洞复现----48、Airflow dag中的命令注入(CVE-2020-11978)
Neural network self cognition model
To solve the problem of "double click PDF file, pop up", please install Evernote program
Why is all (()) true and any (()) false?
2022年信息系统管理工程师考试大纲
论文阅读_医疗NLP模型_ EMBERT
Humi analysis: the integrated application of industrial Internet identity analysis and enterprise information system
ICML 2022 | Meta提出鲁棒的多目标贝叶斯优化方法,有效应对输入噪声
mongodb(快速上手)(一)
Disabling and enabling inspections pycharm
Webapp development - Google official tutorial