I want to read a file and from some location i need to copy the contents and write into another file.
E.g.
Oldfile.txt contents,
ABC987;26/09/2006ABC988;27/09/2006ABC989;28/09/2006ABC990;29/09/2006ABC991;30/09/2006ABC992;25/09/2006ABC993;24/09/2006ABC994;23/09/2006

Now while reading a file i need to get some location of line say ABC990;..... and from this line i want to copy contents into another file say Newfile.txt.

Anyone help me out ASAP. I am a new to file handling in C.