mirror of
https://github.com/DavidGailleton/42-Piscine_Python.git
synced 2026-03-14 05:06:55 +01:00
18 lines
531 B
Python
18 lines
531 B
Python
def read_ancient_text() -> None:
|
|
try:
|
|
print("Accessing Storage Vault: ancient_fragment.txt")
|
|
vault = open("ancient_fragment.txt", "r")
|
|
print("Connection establish...")
|
|
print("\nRECOVERED DATA:")
|
|
print(vault.read())
|
|
vault.close()
|
|
print("\nData recovery complete. Storage unit disconnected.")
|
|
except FileNotFoundError:
|
|
print("ERROR: Storage vault not found.")
|
|
except Exception as err:
|
|
print(err)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
read_ancient_text()
|