Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sys import argv # This module allows the user to input a name for a file to open
- script, filename1 = argv
- txt = open(filename1) # This allows txt to be assigned to open(filename1)
- print txt.read() # This string allows the txt file to be read. because txt = open(filename) that particular txt document will now pint
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement