Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- f = open(sys.argv[1])
- out = ""
- for c in f.read():
- if ord(c) >= 32 and ord(c) < 127:
- out += c
- elif ord(c) == 10 or ord(c) == 13:
- out += "\n"
- else:
- out += " "
- f.close()
- print out
Add Comment
Please, Sign In to add comment