Java BufferedReader Create getReader(String Path)

Here you can find the source of getReader(String Path)

Description

get Reader

License

Open Source License

Declaration

public static BufferedReader getReader(String Path)
            throws FileNotFoundException, IOException 

Method Source Code

//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));
    }
}

Related

  1. getReader(String filename)
  2. getReader(String filename)
  3. getReader(String filename)
  4. getReader(String filePath, String charset)
  5. getReader(String path)
  6. getReader(String path, String charEncoding)
  7. getReader(String path, String charEncoding)
  8. getReaderAsString(Reader reader)
  9. getReaderText(BufferedReader reader)