Java Utililty Methods File to Reader

List of utility methods to do File to Reader

Description

The list of methods to do File to Reader are organized into topic(s).

Method

BufferedReaderopenReader(String fname)
open Reader
BufferedReader reader;
InputStream is = ClassLoader.getSystemResourceAsStream(fname);
if (is == null) {
    is = ClassLoader.getSystemResourceAsStream("/" + fname);
    if (is == null)
        is = new FileInputStream(fname);
reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
...