Unverified Commit d5b5ea2d authored by Lokesh Singh's avatar Lokesh Singh Committed by GitHub

Create fileReader.java

parent c8064255
import java.io.FileReader;
class fileReader {
public static void main(String[] args) {
char[] array = new char[100];
try {
FileReader input = new FileReader("output.txt");
input.read(array);
System.out.println("Data in the file:");
System.out.println(array);
input.close();
}
catch(Exception e) {
e.getStackTrace();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment