O
oliverjb
Hi,
I have a file which contains lots of data in the form:
*Oliver - 1 2 3 4 5 6 7 8 9 0
*Bob - 2 4 6 8 10 12
*Jim - 3 4 5 6 7 etc.
If I wanted to find all the numbers for a particular name, how would I
do it?
So if my argument was Jim, I would want to return 3 4 5 6 and 7 and put
them into an array.
I've looked at DataInputStream and FileInputStream but not quite sure
how I'm supposed to use them.
Many thanks,
Oliver
I have a file which contains lots of data in the form:
*Oliver - 1 2 3 4 5 6 7 8 9 0
*Bob - 2 4 6 8 10 12
*Jim - 3 4 5 6 7 etc.
If I wanted to find all the numbers for a particular name, how would I
do it?
So if my argument was Jim, I would want to return 3 4 5 6 and 7 and put
them into an array.
I've looked at DataInputStream and FileInputStream but not quite sure
how I'm supposed to use them.
Many thanks,
Oliver