Here you can find the source of getFileReader(String filename)
public static Reader getFileReader(String filename) throws FileNotFoundException
//package com.java2s; //License from project: Open Source License import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.Reader; public class Main { public static Reader getFileReader(String filename) throws FileNotFoundException { return getFileReader(new File(filename)); }/*from w w w . ja va2 s . c o m*/ public static Reader getFileReader(File file) throws FileNotFoundException { return new FileReader(file); } }