Java File to Reader newReader(File file)

Here you can find the source of newReader(File file)

Description

new Reader

License

Open Source License

Declaration

public static BufferedReader newReader(File file) throws FileNotFoundException 

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;

public class Main {
    public static BufferedReader newReader(File file) throws FileNotFoundException {
        return new BufferedReader(new FileReader(file));
    }//from w  w w .j a v  a  2  s  .  c o m
}

Related

  1. newReader(File file, String charset)
  2. newReader(File file, String encoding)
  3. newReader(File pathname)
  4. newReader(String value)