The file contains information, I understand that I need to open the file and read its contents, maybe open it in a dictionary?
from flask import Flask, request
app = Flask(__name__)
@app.route('/')
def read_file():
text = open(r'/Users/dev/Desktop/new_project/requiremets.txt')
text.readline()
return text
if __name__ == '__main__':
app.run(debug=True)