Accessing Data from a .txt file
I hope you are able to help me :D
I'm very new to Java, and have so far just spent a lot of hours playing around and using google when i get stuck with something.
Anyway, in a little program I'm currently doing I'd like to set an int variable to a value that is stored in a .txt file.
For example, in pseudo code it would work something like this:
The main purpose of doing this is so that every time the program is run, int a takes its value from the text file. Whilst running the program I might like to change the value of a, in which case the txt file will need changing so that the changes are reflected upon the next run of the programm. Essentially its like using a GET SQL command with a MySQL database, but far simpler!!! (Hopefully :p)
a = the value of the int stored in this text file(hello.txt);
Any help with this would be greatly appreciated!