Upload Button

I am wondering how I could read the text file that the user has inputted through an Upload Button and store it in a variable so I can manipulate the text in my backend.