当前位置:网站首页>字符输入流与字符输出流
字符输入流与字符输出流
2022-07-01 04:46:00 【洋啊桑815】
import java.io.*;
public class TestDamo {
public static void main(String[] args) {
try {
//字符输出流
Writer writer=new FileWriter("");
writer.write("一");//写一个字符
byte[] bytes="你好".getBytes();
//字符输入流
Reader reader=new FileReader("");
reader.read();//读一个字符
File f=new File("");
byte[]bytes1=new byte[(int)f.length()];//得到所有字符
} catch (Exception e) {
e.printStackTrace();
}
}
}
与字节流大同小异。
边栏推荐
- LeetCode_ 53 (maximum subarray and)
- Question bank and answers for chemical automation control instrument operation certificate examination in 2022
- [2020 overview] overview of link prediction based on knowledge map embedding
- STM32 光敏电阻传感器&两路AD采集
- Leecode record 1351 negative numbers in statistical ordered matrix
- JVM栈和堆简介
- CF1638E. Colorful operations Kodori tree + differential tree array
- How to do the performance pressure test of "Health Code"
- Software testing needs more and more talents. Why do you still not want to take this path?
- How to use common datasets in pytorch
猜你喜欢

Registration for R2 mobile pressure vessel filling test in 2022 and R2 mobile pressure vessel filling free test questions

Difficulties in the development of knowledge map & the importance of building industry knowledge map

Ten wastes of software research and development: the other side of research and development efficiency

The index is invalid

2022.2.7-2.13 AI industry weekly (issue 84): family responsibilities

STM32 extended key scan

Pytorch(二) —— 激活函数、损失函数及其梯度

I also gave you the MySQL interview questions of Boda factory. If you need to come in and take your own

神经网络-最大池化的使用

Neural network convolution layer
随机推荐
先有网络模型的使用及修改
Common methods in transforms
Fitness without equipment
Dual contractual learning: text classification via label aware data augmentation reading notes
C read / write application configuration file app exe. Config and display it on the interface
常用的Transforms中的方法
Strategic suggestions and future development trend of global and Chinese vibration isolator market investment report 2022 Edition
Pytorch(三) —— 函数优化
Execution failed for task ‘:app:processDebugResources‘. > A failure occurred while executing com. and
Pytorch(二) —— 激活函数、损失函数及其梯度
测量三相永磁同步电机的交轴直轴电感
Odeint and GPU
LM小型可编程控制器软件(基于CoDeSys)笔记十九:报错does not match the profile of the target
Dual Contrastive Learning: Text Classification via Label-Aware Data Augmentation 阅读笔记
神经网络-非线性激活
Pytorch(四) —— 可视化工具 Visdom
【FTP】FTP常用命令,持续更新中……
LeetCode_35(搜索插入位置)
数据加载及预处理
Solve the problem that the external chain file of Qiankun sub application cannot be obtained