Here you can find the source of getReader(String Path)
public static BufferedReader getReader(String Path) throws FileNotFoundException, IOException
//package com.java2s; //License from project: Open Source License import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; public class Main { public static BufferedReader getReader(String Path) throws FileNotFoundException, IOException { File file = new File(Path); file.createNewFile();/* ww w.j a v a 2 s. c o m*/ return new BufferedReader(new FileReader(file)); } }