Using a textarea how can I edit a text file? I know how to create one and how to view one, but how would I edit one?

Would I have to delete the existing one and create a new one with the same name every time?