title: Check if a file is modified in Python
body: <p>I am trying to create a box that tells me if a file text is modified or not, if it is modified it prints out the new text inside of it. This should be in an infinite loop (the bot sleeps until the text file is modified).</p>
  
  <p>I have tried this code but it doesn't work.</p>
  
  <pre><code>while True:
      tfile1 = open("most_recent_follower.txt", "r")
      SMRF1 = tfile1.readline()
      if tfile1.readline() == SMRF1:
          print(tfile1.readline())
  </code></pre>
  
  <p>But this is totally not working... I am new to Python, can anyone help me?</p>