delete element from a txt file

I am doing a program, where I must sort a really big file. I must use a metod that creates a lot of txt files. I want a function that is capable of deleting the first 2 elements from a txt file.
Exemple:
the file originally is

google 100
apple 250
amazon 310
fiat 200

After using the function the file is

apple 250
amazon 310
fiat 200

I hope you can help me.
Thanks.
Topic archived. No new replies allowed.