Demo entry 2368272



Submitted by anonymous on Aug 15, 2015 at 22:44
Language: Python 3. Code size: 203 Bytes.

# Try to open the file in read mode
# If the file does not exist, ask the user if they want to create the file
    # if yes, open the file in write mode (create the file)
    # if no, exit the program

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).