Fastest way to find a string in a text file with java -


What is the fastest way to check that a file has a fixed string or number?

Take a look at the scanner class, with JDK The ship is. You will be able to leave some parts of the input (in this case - the text file) and match the regular expression of your desire. I'm not sure that this is the most effective way, but sure enough - it's very simple You can also see a look, which will help you get started.

Comments