M
Murali
Hello Everyone,
I am breaking my head with this problem. Please help
me out. Let me first explain my problem :
Here it is:
I am working in realtime environment where i will be creating
logfiles internally while my system is running.
I am having a logfile.txt in which i have to store maximum of 150
lines.Suppose for every 60 seconds 50 lines are going to add to my
logfile If it exceeds more than 150 my program should remove first 50
lines and add coming 50 lines at the end.
In brief to say how to delete few lines at the top of a text file and
append it 50 lines at bottom.
It will be very helpful for me if you send me any system call to solve
my problem or the code.
Thank you,
Murali
I am breaking my head with this problem. Please help
me out. Let me first explain my problem :
Here it is:
I am working in realtime environment where i will be creating
logfiles internally while my system is running.
I am having a logfile.txt in which i have to store maximum of 150
lines.Suppose for every 60 seconds 50 lines are going to add to my
logfile If it exceeds more than 150 my program should remove first 50
lines and add coming 50 lines at the end.
In brief to say how to delete few lines at the top of a text file and
append it 50 lines at bottom.
It will be very helpful for me if you send me any system call to solve
my problem or the code.
Thank you,
Murali