Hi,
I have a csv file opened in append mode and I append to the file every few seconds. But I dont want the file to exceed a certain limit. So I want to delete first N lines from a csv file. I tried using ftruncate(), but it deletes lines from the bottom of the file. I want to delete lines from the top of the file. Can anyone help me code that?
Thanks in advance!