Read it line by line and then use strtok to split string into words.
nimesh like this