I am trying to create a webapp where person can store some data(email and password) but i want to use .txt file while storing their data.Mean i want to store their data into the .txt file but if i try to use with statement in my myapp.py then it gives the internal server error. I am using Flask to create this webapp.