当前位置:网站首页>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 .
边栏推荐
- Solve the problem that the external chain file of Qiankun sub application cannot be obtained
- 2022-02-15 (399. Division evaluation)
- STM32扩展版 按键扫描
- 字符输入流与字符输出流
- 神经网络的基本骨架-nn.Moudle的使用
- 神经网络-使用Sequential搭建神经网络
- AssertionError assert I.ndim == 4 and I.shape[1] == 3
- Pytoch (III) -- function optimization
- Technology sharing | broadcast function design in integrated dispatching
- [2020 overview] overview of link prediction based on knowledge map embedding
猜你喜欢

Sorting out 49 reports of knowledge map industry conference | AI sees the future with wisdom

Pytest automated testing - compare robotframework framework

神经网络-非线性激活

Neural networks - use sequential to build neural networks

神经网络-卷积层

C read / write application configuration file app exe. Config and display it on the interface

Oracle views the creation time of the tablespace in the database

Pytoch (III) -- function optimization

This sideline workload is small, 10-15k, free unlimited massage

Dual contractual learning: text classification via label aware data augmentation reading notes
随机推荐
STM32扩展板 数码管显示
LM small programmable controller software (based on CoDeSys) note 19: errors do not match the profile of the target
Design experience of Meizhou clinical laboratory
分布式事务-解决方案
[daily question in summer] function of rogu p3742 UMI
【暑期每日一题】洛谷 P7222 [RC-04] 信息学竞赛
[une question par jour pendant l'été] course luogu p1568
Dede collection plug-in does not need to write rules
STM32扩展版 按键扫描
[pat (basic level) practice] - [simple simulation] 1064 friends
C - detailed explanation of operators and summary of use cases
JS to solve the problem of floating point multiplication precision loss
LeetCode_ 53 (maximum subarray and)
[hard ten treasures] - 2 [basic knowledge] characteristics of various topological structures of switching power supply
[daily question in summer] letter delivery by p1629 postman in Luogu (to be continued...)
Neural network - nonlinear activation
Leecode question brushing record 1332 delete palindrome subsequence
【暑期每日一题】洛谷 P5886 Hello, 2020!
【硬十宝典目录】——转载自“硬件十万个为什么”(持续更新中~~)
LeetCode_66(加一)