Save input text into a .txt file

I am working on a standalone machine which is not connecting to any network or internet, how can i make the form values to be stored into a .txt file? I will have a back end system for the admin to read the text. Do i need to use php for it(setting local server stuff)? But I just want it in .txt format, because i am not familiar in database. Thanks for help.