Scanner sc = new Scanner(new File("yourFile.txt"));sc.useDelimiter("\\Z");String s = sc.next();
↧
Answer by TheWaterWave222 for How do I create a Java string from the contents of a file?
↧