I have a question as I am unable to follow your thread. Do you want each of the values separated by the pipe symbol "|" to be stored into a separate variable and what do you want to do with them afterwards?
my c program should read the first line and
then store
aaaaaaa in some variable x
11111111111 in some variable y and so on .......
program will identify the strings that are written b/w two delimiters
i.e '|'
store in variable x till i reach the next delimiter than to the next delimiter is stored in variable y.
Here is an example of strtok_r() (thread safe). I commented the strncpy() line where every separated value is stored in "hash" variable. If you wish to store everything in memory, you could use linked lists to link multiple structs which have 'hash' variables.