An App to add/edit text to files?

Is there anytime of application that I can view any type of text files and edit them? Im in high school and my teacher is allowing me to view his notes from my ipod, but I need to edit them too, anyway? I can transfer the notes into microsoft word or other things.