ryuturk
asked on
how do i obtain a substring from a string thats been read in from a file?
hello,
i was wondering if you could assist me. I'm new to programming and i'm currently trying to get to grips with it.
Presently i'm trying to write a program that will take in a file and compare each line in the file to a pre-defined word, just to see how many there are.
From my work i've realised that the java method - equals isn't suitable as the method means it must be an exact match. Now, i've heard that i should use a string tokenizer but i haven't yet been able to figure out how to use it or why i need to. Can you help me?
Thanks,
ryu.
i was wondering if you could assist me. I'm new to programming and i'm currently trying to get to grips with it.
Presently i'm trying to write a program that will take in a file and compare each line in the file to a pre-defined word, just to see how many there are.
From my work i've realised that the java method - equals isn't suitable as the method means it must be an exact match. Now, i've heard that i should use a string tokenizer but i haven't yet been able to figure out how to use it or why i need to. Can you help me?
Thanks,
ryu.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I will leave a recommendation in the Cleanup topic area that this question is:
Recommendation: Split between cuynen and vemul
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
DominicCronin
EE Cleanup Volunteer