simbax

type.py

Dec 29th, 2012
6,445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. # coding=utf-8
  2. s = raw_input("Podaj nazwę pliku do wyświetlenia: ")
  3. plik = file(s, "rb")
  4. ekran = ''
  5. while True:
  6.     b = plik.read(1)
  7.     if not b: break
  8.     ekran += b
  9. plik.close()
  10. print ekran
Advertisement
Add Comment
Please, Sign In to add comment