Handling .txt files

"I also need a way to get a .txt file uploaded by the user and read it. "
Do you mean the system should read it and do something with the text? Or to let the user open the file and read it.