Java BufferedReader Read Line readLine(File file)

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

Description

read Line

License

Open Source License

Declaration

public static String readLine(File file) throws IOException 

Method Source Code

//package com.java2s;
// it under the terms of the GNU General Public License as published by

import java.io.*;

public class Main {
    public static String readLine(File file) throws IOException {
        try (BufferedReader br = new BufferedReader(new FileReader(file))) {
            return br.readLine();
        }/*from  w w w .  j  a va  2 s.c  o  m*/
    }
}

Related

  1. readLine(BufferedReader reader)
  2. readLine(BufferedReader reader)
  3. readLine(BufferedReader reader, StringWriter writer)
  4. readLine(File f)
  5. readLine(File f)
  6. readLine(File file, int lineNumber)
  7. readLine(InputStream in)
  8. readLine(InputStream in)
  9. readLine(InputStream input)