I can't recommend anymore than I said before:
What do you want the data in the file to tell you? When you read the file, what actions will you take?
Start at the end, what do you want to do with...
Type: Posts; User: Norm
I can't recommend anymore than I said before:
What do you want the data in the file to tell you? When you read the file, what actions will you take?
Start at the end, what do you want to do with...
You need to define what you want to do. What do you want the data in the file to tell you? When you read the file, what actions will you take?
What you show appears to be text. It would be read as a String, not as int.
In a compiled java program, KeyEvent.VK_UP etc are int.
You can read data from a txt file as ints. See the Scanner class's nextInt method.
Or you can convert String to int by using the Integer class's parseInt method.
Please explain this in some more detail.
What is the relationship between the KeyStroke class and the String class you are looking for?
How do integers relate to the KeyStroke class?