public class Test {
public static void main(String[] args) throws IOException {
//转换流以单个英文或单个中文为一个字符读取可直接转换为char类型输出
InputStreamReader input=new InputStreamReader(new FileInputStream("xxx.txt"));
int tem;
while((tem=input.read())!=-1){
System.out.print((char)tem);
}
input.close();
}
}