https://docs.vultr.com/java/examples/create-string-from-contents-of-a-file
Read file to string in Java In Java, you can read a file to a string using the Files class. For example, String content = Files.readString(Paths.get("file.txt")); reads the entire file into a string with minimal code. Alternatively, you can use BufferedReader to read the file line by line and append it to a StringBuilder. These methods are commonly used in file manipulation, making it easy to handle text data in Java applications