title: How to confirm that a file object is empty? [Python]
body: <p>in a py module, I write:</p>
  
  <pre><code>outFile = open(fileName, mode='w')
  if A:
      outFile.write(...)
  if B:
      outFile.write(...)
  </code></pre>
  
  <p>and in these lines, I didn't use flush or close method.
  Then after these lines, I want to check whether this "outFile" object is empty or not. How can I do with it?</p>