import java.io.File; import java.io.FileInputStream; import java.io.IOException; public class FileInputStreamDemo { public static void main(String[] args) throws IOException { File file = new File("E:\\IO流\\java\\1.txt"); FileInputStream f = new FileInputStream(file); int n = 0; while ((n = f.read()) != -1) { System.out.print((char) n); } f.close(); } }
InputStream字节输入流
猜你喜欢
转载自www.cnblogs.com/zhai1997/p/11366015.html
今日推荐
周排行