Thanks for your reply,
Instead of write statment, if i do
fputs(buf, out); => it also writes all data from input file to output file till EOF.
How can I get the line location?
For this there is one file is created called (STOP.txt), if this file exists, then get the line which is just read and copy all contents from that line till EOF into output file.
Please Help me out.