Guest User

Untitled

a guest
Jan 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. import sys
  2.  
  3. f = open(sys.argv[1])
  4.  
  5. out = ""
  6.  
  7. for c in f.read():
  8.     if ord(c) >= 32 and ord(c) < 127:
  9.         out += c
  10.     elif ord(c) == 10 or ord(c) == 13:
  11.         out += "\n"
  12.     else:
  13.         out += " "
  14. f.close()
  15.  
  16. print out
Add Comment
Please, Sign In to add comment