I have a variable "inputed_email" that I want to write to a .txt file. However, how would you accomplish this in Flask? Any help is appreciated. Thank you!
@app.route('/', methods=['GET', 'POST'])
def my_form():
    inputed_email = request.form.get("email")
    if request.method == 'POST' and inputed_email:
        # code that writes "inputed_email" to a .txt file
        return render_template('my-form.html', email=inputed_email)
    return render_template('my-form.html')
 
    