title: how to check the character count of a file in python
body: <p>I have a python code which reads many files.
  but some files are extremely large due to which i have errors coming in other codes.
  i want a way in which i can check for the character count of the files so that i avoid reading those extremely large files.
  Thanks.</p>