标签:png mamicode row dem color rgs ima str pre
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(); } }
标签:png mamicode row dem color rgs ima str pre
原文地址:https://www.cnblogs.com/zhai1997/p/11366015.html