I want read all the lines from a file using c program using command line arguments. I tried using “fscanf”. I want to eliminate the line start from ‘#’. But fscanf is reading all the words. Then I tried using fgets and sscanf. But sscanf is reading only first word of a line. How do read all the from a file and each word in a line should take is as separate array.
Ex: I am vasu. Line:I am vasu I need output like this: array 1: I array 2 : am arry 3 : vasu