Using scanner to read string from text file and then print out
问题 I have a text file which has the string, - "!- =========== ALL OBJECTS IN CLASS: FENESTRATIONSURFACE:DETAILED ===========" in it as you can see in the code below. IF the text file contains this string I need to read it from the text file and then print it out again. The problem is I cant work out why my code is not printing it. Any help would be appreciated thanks! public class Main { public static void main(String[] args) throws FileNotFoundException { File file = new File("C:/Users/Anton