Here you can find the source of readFile(String file)
public static Reader readFile(String file)
//package com.java2s; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.Reader; public class Main { public static Reader readFile(String file) { try {//ww w. j a va2s.c o m return new FileReader(file); } catch (FileNotFoundException e) { return null; } } }