Java - How to read(scanner) file?
public String scanFile(String filename) {
String payload = "";
try {
payload = new Scanner(new java.io.File(filename)).useDelimiter("\\Z").next();
System.out.println(fileanme);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}