Read file to a string

From https://weblogs.java.net/blog/pat/archive/2004/10/stupid_scanner.html