当前位置:网站首页>Scala IO writes data to a text file
Scala IO writes data to a text file
2022-06-24 23:38:00 【Jue Niu thunder plough hot blade】
import java.io.FileOutputStream
object D01_ Write data to a text file {
def main(args: Array[String]): Unit = {
val fos = new FileOutputStream("./data/5.txt")
fos.write(" The keyboard is broken \r\n".getBytes())
fos.write(" Monthly salary over 30000 ".getBytes)
fos.close()
}
}
边栏推荐
- 7-9 寻宝路线
- The R language uses the matchit package for propensity matching analysis and match The data function constructs the matched sample set, and performs Welch double sample t-test analysis and double inde
- R language uses GLM function to build Poisson log linear regression model, processes three-dimensional contingency table data to build saturation model, uses summary function to obtain model summary s
- 企业数据防泄露解决方案分享
- 都2022年了,你还不了解什么是性能测试?
- Ethernet ARP Protocol
- golang convert map to json string
- R language dplyr package group_ By function and summarize_ The at function calculates the dataframe to calculate the number of counts and the mean value of different groups (summary data by category v
- Tiktok actual combat ~ sorting out the short video release process
- 7-2 求解买股票问题
猜你喜欢

(Smooth)ScrollToPosition doesn't work properly with RecyclerView

无鸟用的SAP PA证书,刚入行的同行可以考一考
![[JS] - [array, stack, queue, linked list basics] - Notes](/img/c6/a1bd3b8ef6476d7d549abcb442949a.png)
[JS] - [array, stack, queue, linked list basics] - Notes

Mirror image of sword finger offer binary tree

Pseudo original intelligent rewriting API Baidu - good collection

Chapter VI skills related to e-learning 5 (super parameter verification)

Understanding openstack network

22map introduction and API

华为机器学习服务语音识别功能,让应用绘“声”绘色

Tiktok practice ~ project associated unicloud
随机推荐
R语言使用MASS包的polr函数构建有序多分类logistic回归模型、使用exp函数、confint函数、coef函数获取模型中每个变量(自变量改变一个单位)对应的优势比的置信区间
Bubble sort
7-8 ladder cloud vertical
376. 机器任务
[JS] - [array application] - learning notes
年薪百万,7年测试经验:守在一个还算不错的赛道,慢慢积累,等风来
Adding, deleting, querying and modifying MySQL tables
[JS] - [array, stack, queue, linked list basics] - Notes
Volcano成Spark默认batch调度器
今天睡眠质量记录79分
Continuous soul torture from two MySQL indexes of interviewers
257. detention of offenders
RT thread uses RT kprintf
R language uses the polR function of mass package to build an ordered multi classification logistic regression model, and uses exp function, confint function and coef function to obtain the confidence
R language uses the multinom function of NNET package to build an unordered multi classification logistic regression model, and uses exp function and coef function to obtain the corresponding odds rat
7-9 寻宝路线
Binary lookup array subscript
抖音实战~发布短视频流程梳理
7-3 maximum sub segment and
Simpledateformat concrete classes for formatting and parsing dates