Hey there guys, I want to make a program that will track the number of times I have clicked a button.
Thing is, I want this to write the information down and load it every time, so it doesn't start at 0 every time you start the program.
How would I go on about writing the info and then reading it and converting it into an int object?
I am pretty much lost here :S
Netherblood 0 Newbie Poster
Recommended Answers
Jump to Post
- read the lines in as a set.
- iterate over the set
- use the split method of String to separate the tokens
- cast the tokens (if need be) and pass them as arguments to a constructor
All 4 Replies
Doogledude123 45 Posting Whiz
Netherblood 0 Newbie Poster
stultuske 1,116 Posting Maven Featured Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.