File management related doubt in Python3!
(IDE related, not playground!) Ok, so, I was trying to practice files management and got stuck here! This is the part of the code where I'm practicing it. The program closes without reading or writing the files. What am I doing wrong? ( ## THIS IS THE PART WHERE IT'S SUPPOSED TO READ THE FILES if txtmenuopt == "R": try: print("\nWhat file do wish to open?\n") openfilename = input(">") print("\nLoading " , openfilename , "\n") openfile = open('"' , openfilename , '"' , "r") print(openfile.read().splitlines()) openfile.close() input("Press enter to close file.\n\n") except: print("Uh-oh! Something wrong happened!\n") Full code at: https://code.sololearn.com/c0s7pmL79Upa/?ref=app