Hi,
I have small problem.
I want to truncate a line in a text file using C file handling functions and write new line in place of it. How do I do it?
e.g. "example.txt" Line 1: This is a text file. Line 2: Second line of it.
Now I want to truncate first line and replace it with suppose following text: "This is first line"
How do I do it using C file handling functions like fputs, fscanf, fseek.
Thnks in advance
------------------------------------------------------------------------------------------------------------------------------------------
Amit Kulkarni.
--------------------------------------------------------------------------------------------------------------------------------------------|
Everyone wishes to have truth on his side, but not everyone wishes to be on the side of truth.
--------------------------------------------------------------------------------------------------------------------------------------------|
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>