Java BufferedReader Create getBufferedReader(String file)

Here you can find the source of getBufferedReader(String file)

Description

get Buffered Reader

License

Open Source License

Declaration

public static BufferedReader getBufferedReader(String file) 

Method Source Code

//package com.java2s;
/**/*from w  w w .j  a v  a  2  s. c om*/
 *  Copyright (c)  2016-2020 Weibo, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Weibo, 
 *  Inc. ("Confidential Information"). You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into with Weibo.
 */

import java.io.BufferedReader;

import java.io.FileReader;

public class Main {
    public static BufferedReader getBufferedReader(String file) {
        BufferedReader reader = null;
        try {
            reader = new BufferedReader(new FileReader(file));
        } catch (Exception e) {
        }
        return reader;
    }
}

Related

  1. getBufferedReader(InputStream inputStream, String charsetName)
  2. getBufferedReader(InputStream stream, String charset)
  3. getBufferedReader(Reader r)
  4. getBufferedReader(Reader rd)
  5. getBufferedReader(String directory, String filename)
  6. getBufferedReader(String filename)
  7. getBufferedReader(String filename, String encoding)
  8. getBufferedReader(String nombreFichero)
  9. getBufferedReader(String szFile)