We strive for content integrity.Use the Information on this blog at your own risk. All Information is Provided on AS IS basis without any warranty of any kind.
public static void main(String[] args){ String fname = "filename.txt"; try { BufferedReader br = new BufferedReader(new FileReader(fname));
String line = br.readline(); //Reads a single line from file. Return null if end of file is reached br.read();//read single character from file. br.close(); //closes the file
0 comments:
Post a Comment