reset password
Author Message
sk8boardgarren
Posts: 2
Posted 16:10 Oct 05, 2013 |

.

Last edited by sk8boardgarren at 06:36 Oct 07, 2013.
kknaur
Posts: 540
Posted 16:17 Oct 05, 2013 |

You'll have to figure out how to read each element from the input file.  The first element you always read should be the category so you could read the first line and do something with that line.  Every line after the category will be one of the words that the user will have to try to guess so you will have to handle those lines differently from the first line. 

Generally when reading from a file you read each item line by line and before reading the next line you, you will need to do something with the data you just read, i.e. processing it in some way or adding it to an array so that the data is stored in your program. 

Also, please don't post any code on the forums.  If you have a specific question about a part of the code you are working on you can always email the java file to Me or John and we can give some advice.