FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 292 Ask New Question


How can i read the full content of a file into a String in Java?

On By


1 Answer


String fileContent = new String(Files.readAllBytes(Paths.get("/path/to/file.txt")));
On By


Answer This Question


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News