当前位置:网站首页>I/o case practice
I/o case practice
2022-07-25 21:42:00 【51CTO】

Create a byte output stream object associated with a file FileOutputStream fos = new
FileOutputStream("c:\\cn8.txt"); // Create a conversion stream object that can convert characters to bytes , And specify the code
OutputStreamWriter osw = new OutputStreamWriter(fos,"utf-8");
Call transformation flow , Write the words out , It is actually written to the buffer of the conversion stream osw.write(" Hello ");// Write buffer . osw.close();
Create a byte stream object to read the file

Character output stream

Character input stream
Character output stream + file


Byte output stream + File operations

Learn more about
边栏推荐
- [manageengine]itsm application in retail industry
- Autojs learning - file depth search
- Huawei occupies half of the folding mobile phone market, proving its irreplaceable position in the high-end market
- 【面试:并发篇23:多线程:join】join再理解
- 我也是醉了,Eureka 延迟注册还有这个坑!
- All non isomorphic subgraphs of a directed complete graph of order 3 (number of different hook graphs)
- CNN structural design skills: taking into account speed accuracy and engineering implementation
- 2022-07-18: what is the output of the following go language code? A:Groutine; B:Main; C:Goroutine; D:GoroutineMain。 package m
- How to evaluate hardware resources (number of CPUs, memory size) when Oracle migrates from small computers to x86 architecture? Is there a measurement index or company?
- Mysql8.0 MHA to achieve high availability "MHA"
猜你喜欢

Performance debugging -- chrome performance

MySQL master-slave configuration

Pyg tutorial (8): calculate a more efficient sparse matrix form

Creation and destruction of function stack frames
![[database] conceptual design, logical design, relational database design theory](/img/4d/be7ab21c98fc1bf4b63e4abe22d9fc.png)
[database] conceptual design, logical design, relational database design theory

Huawei occupies half of the folding mobile phone market, proving its irreplaceable position in the high-end market

Zero basic learning canoe panel (17) -- panel CAPL function

Vivo official website app full model UI adaptation scheme

Basic method of black box (function) test

五、品达通用权限系统__pd-tools-xxs(防跨站脚本攻击)
随机推荐
[redis underlying parsing] linked list type
Talk about what's going on with C # backstage GC?
The role of the resize function is "suggestions collection"
[MAIXPY]kpu: load error:2005, ERR_READ_FILE: read file failed问题解决
C#常见的集合
Handwriting distributed configuration center (1)
GPON介绍及华为OLT网关注册配置流程
Face and key point detection: yolo5face practice
零基础学习CANoe Panel(17)—— Panel CAPL Function
Creation and destruction of function stack frames
Shopify sellers: share some tips for social media marketing!
Byte side: can TCP and UDP use the same port?
Vivo official website app full model UI adaptation scheme
How will Web3 change the future of people?
Zero basic learning canoe panel (17) -- panel CAPL function
MySQL master-slave configuration
Share | intelligent fire emergency management platform solution (PDF attached)
Pyqt5 use pyqtgraph to draw multiple y-value scatter plots
5、 Pinda general permission system__ PD tools XXS (anti cross site script attack)
Interface testing tool restlet client