Java Folder Read getFileStringContent(String filename)

Here you can find the source of getFileStringContent(String filename)

Description

get File String Content

License

Open Source License

Declaration

public static String getFileStringContent(String filename)
            throws FileNotFoundException 

Method Source Code

//package com.java2s;
import java.io.*;

import java.util.Scanner;

public class Main {
    public static String getFileStringContent(String filename)
            throws FileNotFoundException {
        String text = new Scanner(new File(filename)).useDelimiter("\\A")
                .next();// ww w . j  a v a  2s  .co m
        return text;
    }
}

Related

  1. getFilesStartingWith(File parentDir, String prefix)
  2. getFilesStartingWith(String dirName, String startsWith)
  3. getFileStatus(File file)
  4. getFileString(File file)
  5. getFileString(String filePath)
  6. GetFilesWithChildren(File root, ArrayList files)
  7. getFileSystemProperties(String path)
  8. getFileSystemProperty(String name)