Advertisement
lessientelrunya

File reading

Apr 7th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. >>> a_file = open('my_library/just_kids.txt', encoding='utf-8')
  2. >>> a_file.name                          
  3. 'my_library/just_kids.txt'
  4. >>> a_file.encoding                                        
  5. 'utf-8'
  6. >>> a_file.mode                                        
  7. 'r'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement