Join the Community Java Q&A

Category: Java

Java 7 read file to String

Before Java7, reading a file in Java and convert to a String, used to require a lot of code either using FileInputStream or BufferReader with looping conditions. Of course, we might have used this by writing as a Utility method …