IGNORING COMMENTS IN SOMELINES OF TEXT FILE IN FSCANF

In reply to pawan:

$fscanf is good for the statndard format.
in your case, you might use $fgets to get every line and do some parse to see if //comment inside.
I think it much easier to sed input file then going thru it. :p
referring to $system if you like