Guest User

Untitled

a guest
Nov 17th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. def fundamentalaNyckeltal(param):
  2. fundamentalaNyckeltalRoot = Tk()
  3. f = open("fundameta.txt", "r")
  4. if param == "1":
  5. f_contents = f.read(16)
  6. if param == "2":
  7. f_contents = f.read(16: 32) #from 16 to 32
  8. f.close()
  9.  
  10. f_contents = f.read(16: 32) #from 16 to 32
  11.  
  12. f.seek(16) # go to position 16
  13. f_contents = f.read(16) # read 16 bytes (from position 16), i. e. bytes 16 to 31
Add Comment
Please, Sign In to add comment