The information that I can find on string paths is confusing. Can anyone help please?
I want to read this path:
try (Scanner s = new Scanner(new File("c:/Users/Green/documents/dictionary.txt")).useDelimiter("\\s*-\\s*")) {
but via a string path and put the return line by line into an ArrayList
.
Any pointers would be gratefully received.