Android Text File Read readFull(String path)

Here you can find the source of readFull(String path)

Description

read Full

License

Apache License

Declaration

public static String readFull(String path) throws IOException 

Method Source Code

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

import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;

public class Main {
    public static String readFull(String path) throws IOException {
        return new String(Files.readAllBytes(Paths.get(path)),
                Charset.defaultCharset());
    }//w  w w  . j  a  v a 2 s. c o  m
}

Related

  1. readFileAsString(File file, String charset)
  2. readFileAsString(String filename)
  3. readFileLineByLine(File file)
  4. readFree(File file)
  5. readFromFile(File file)
  6. readLines(String file)
  7. readStringFromClasspath(String path, Class c)
  8. readStringFromFile(String fileName)
  9. readText(String path)