Searching a Files Content Using Java?
问题 I would like to write an application, in java, that allows me to open a file (txt) and using the users input, search for all instances of a particular word or string. As there are probably more experienced programmers here, i would like some advice about how to go about creating such a tool. How would you go about creating a basic text search tool? I have been playing around with some java classes such as File, FileOutputStream, FileInputStream, InputStreamReader, OutputStreamReader,