当前位置:网站首页>Character input stream and character output stream
Character input stream and character output stream
2022-07-01 04:48:00 【Yangasang 815】
import java.io.*;
public class TestDamo {
public static void main(String[] args) {
try {
// Character output stream
Writer writer=new FileWriter("");
writer.write(" One ");// Write a character
byte[] bytes=" Hello ".getBytes();
// Character input stream
Reader reader=new FileReader("");
reader.read();// Read a character
File f=new File("");
byte[]bytes1=new byte[(int)f.length()];// Get all characters
} catch (Exception e) {
e.printStackTrace();
}
}
}
Similar to byte stream .
边栏推荐
- pytorch神经网络搭建 模板
- [hard ten treasures] - 1 [basic knowledge] classification of power supply
- 【暑期每日一题】洛谷 P5740【深基7.例9】最厉害的学生
- Codeforces Round #771 (Div. 2) ABCD|E
- 分布式事务-解决方案
- 手动实现一个简单的栈
- Neural network convolution layer
- Cmake selecting compilers and setting compiler options
- Announcement on the list of Guangdong famous high-tech products to be selected in 2021
- Dual contractual learning: text classification via label aware data augmentation reading notes
猜你喜欢

分布式锁的实现

Extension fragment

How to do the performance pressure test of "Health Code"

STM32扩展板 温度传感器和温湿度传感器的使用

最长递增子序列及最优解、动物总重量问题

Pytorch(四) —— 可视化工具 Visdom

技术分享| 融合调度中的广播功能设计

Research on medical knowledge atlas question answering system (I)

C -- array

Neural networks - use sequential to build neural networks
随机推荐
无器械健身
C - detailed explanation of operators and summary of use cases
Codeworks round 449 (Div. 1) C. Kodori tree template
常用的Transforms中的方法
【暑期每日一题】洛谷 P1629 邮递员送信(未完待续...)
Leecode record 1351 negative numbers in statistical ordered matrix
All in all, the low code still needs to solve these four problems
The index is invalid
[difficult] sqlserver2008r2, can you recover only some files when recovering the database?
[une question par jour pendant l'été] course luogu p1568
PR 2021 quick start tutorial, learn about the and functions of the timeline panel
Collect the annual summary of laws, regulations, policies and plans related to trusted computing of large market points (national, ministerial, provincial and municipal)
Solve the problem that the external chain file of Qiankun sub application cannot be obtained
1076 Forwards on Weibo
解决:拖动xib控件到代码文件中,报错setValue:forUndefinedKey:this class is not key value coding-compliant for the key
Daily algorithm & interview questions, 28 days of special training in large factories - the 13th day (array)
How to use common datasets in pytorch
Announcement on the list of Guangdong famous high-tech products to be selected in 2021
Sorting out 49 reports of knowledge map industry conference | AI sees the future with wisdom
Matters behind the construction of paint testing laboratory