String content = new Scanner(new File("foo"), "UTF-8").useDelimiter("\\A").next();