Java FileReader Read readFile(String file)

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

Description

read File

License

Open Source License

Declaration

public static Reader readFile(String file) 

Method Source Code

//package com.java2s;

import java.io.FileNotFoundException;
import java.io.FileReader;

import java.io.Reader;

public class Main {
    public static Reader readFile(String file) {
        try {//ww w. j a va2s.c  o  m
            return new FileReader(file);
        } catch (FileNotFoundException e) {
            return null;
        }
    }
}

Related

  1. readFile(File file)
  2. readFile(File iFile)
  3. readFile(final String fileName)
  4. readFile(Reader reader)
  5. readFile(String file)
  6. readFile(String filename)
  7. readFile(String filename)
  8. readFile(String filename)
  9. readFile(String fileName)