FileReader class example

xiaoxiao2021-04-05  318

// Demonstrate FileReader.import java.io *;. Class FileReaderDemo {public static void main (String [] args) throws Exception {FileReader fr = new FileReader ( "FileReaderDemo.java"); BufferedReader br = new BufferedReader (fr); String S; while ((s = br.readline ())! = Null) {system.out.println (s);} fr.close ();}}

转载请注明原文地址:https://www.9cbs.com/read-132022.html

New Post(0)