title: How to seek to a specific line in a file?
body: <p>I have a text file as follows:</p>
  
  <pre><code>1
  /run/media/dsankhla/Entertainment/English songs/Apologise (Feat. One Republic).mp3
  3
  /run/media/dsankhla/Entertainment/English songs/Bad Meets Evil.mp3
  5
  /run/media/dsankhla/Entertainment/English songs/Love Me Like You DO.mp3
  </code></pre>
  
  <p>I want to search for a specifc line in the file let's say the line is<br>
   <code>song_path = "/run/media/dsankhla/Entertainment/English songs/Bad Meets Evil.mp3"</code><br>
  and then I want to seek <code>len(song_path)+2</code> BEHIND so that I can point to <code>3</code> in the file. How can I do this?<br>
  This is my code so far:</p>
  
  <pre><code>txt = open(".songslist.txt", "r+")
  if song_path in txt.read():
      byte = len(song_path)
      txt.seek(-(byte), 1)
      freq = int(txt.readline())
      print freq     # 3
      freq = freq + 1
      txt.seek(-2,1)
      txt.write(str(freq))
      txt.close()
  </code></pre>