The code checks if the file exists I am struggling to complete this and save my database (gen0values) and make it open to a file in a table.
def exportdata():
print("\nYou chose option 4")
import os
filename = input("Please type in the filename")
if os.path.isfile(filename):
print("File exists")
else:
print("File does not exist")