Reading .txt files
Hi I am designing an English Spanish Dictionary using Java. I need to be able to read a .txt file and be able to have access to words in it. How can I scan the file? Where do I put it and is it possible to read to separate strings on one line in a .txt file?
Please reply thoroughly for I am very rusty in Java.
Read the javadocs for the FileReader and BufferedReader classes and try some code.
You can split strings using the String.split method.
Or at least search our forum as well as Google. You can find lost of examples related to yours. Then give a try on yours and let us know if you are stuck on with any.