first of all, i have to say sorry for my poor english.i am working on a phone-book project and come across a big problem.
1. i ask to users to identify the type of data he would like to search,eg, name, tel no
2. i ask the users to input the searching target
3.i try to read a string of array from file
4. i try to 'separate' the array to get the type of data for searching
ie. grace 22222222 F firstname.lastname@example.org
if the users want to search by e-mail, then i should store the e-mail from the array into a new array and then compare it with the target input. but there is where things go wrong. i ve declared a variable to count the null space(eg, e-mail is after 3 null spaces). the data i want is between two null spaces but i cant get them!!!! can anyone please help me??????????
i know my english is a bit confusing, hope u understand what i mean.