Java Path File Read nio readAllLines(Path path)

Here you can find the source of readAllLines(Path path)

Description

read All Lines

License

Apache License

Declaration

public static List<String> readAllLines(Path path) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.*;
import java.nio.charset.*;
import java.nio.file.*;

import java.util.List;

public class Main {
    public static List<String> readAllLines(Path path) throws IOException {
        return Files.readAllLines(path, StandardCharsets.UTF_8);
    }//from   w w  w.j a v a 2 s  . co  m
}

Related

  1. openResourceReader(Class resourceOrigin, String resourcePath)
  2. read(String aPathString)
  3. read(String filePath)
  4. read(String filePath)
  5. read(String path)
  6. readAllLines(String path)
  7. readAllLinesOrExit(Path path)
  8. readAndConsume(String filePath, Consumer consumer)
  9. readAsString(Path path)