ungleich-learning-circle/kjg/python-the-hard-way/e15.py

20 lines
259 B
Python
Raw Normal View History

2020-05-22 12:19:18 +00:00
from sys import argv
script, filename = argv
txt = open(filename)
print(f"Here's your file {filename}: ")
print(txt.read())
txt.close()
print("Type the filename again : ")
file_again = input("> ")
txt_again = open(file_again)
print(txt_again.read())