Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
try: f = open("data.txt") except FileNotFoundError: print("File not found") else: content = f.read() print(content) finally: print("Done")
Result
Open