You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
355 B
22 lines
355 B
### @export "setup"
|
|
import fake_input
|
|
input, input = fake_input.create(['ex15_sample.txt'])
|
|
|
|
### @export "code"
|
|
from sys import argv
|
|
|
|
script, filename = argv
|
|
|
|
txt = open(filename)
|
|
|
|
print(f"Here's your file {filename}:")
|
|
print(txt.read())
|
|
|
|
print("Type the filename again:")
|
|
file_again = input("> ")
|
|
|
|
txt_again = open(file_again)
|
|
|
|
print(txt_again.read())
|
|
|
|
|
|
|