Once you read the line, look for position of empty space in your string from beginning and then substring it. String method charAt(num) and substring(int beginIndex, int endIndex) will help you.
Second option is to use Serialization because you know how the text is formated (meaning text followed by number separated by one empty space)
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
Offline 6,656 posts
since Dec 2004