Program in c

sir i need to read a file then extract some data from it and export it to new file…
extraction of data is to be…
linewise,
stringswise
plz help me out with it…