ogc16 / filesystem Goto Github PK
View Code? Open in Web Editor NEWPython script that checks if a file exists. If it does, prints a message, opens the file in read mode & displays its content. If it doesn't exist, asks if to create file & if answer is affirmative, puts content and opens the file in read mode & prints its content. If user does not want to create file, it simply says goodbye.