title: Extract from current position until end of file
body: <p>I want to pull all data from a text file from a specified line number until the end of a file. This is how I've tried:</p>
  
  <pre><code>def extract_values(f):
      line_offset = []
      offset = 0
      last_line_of_heading = False
  
      if not last_line_of_heading:
          for line in f:
              line_offset.append(offset)
              offset += len(line)
              if whatever_condition:
                  last_line_of_heading = True
  
      f.seek(0)
  
      # non-functioning pseudocode follows
      data = f[offset:]  # read from current offset to end of file into this variable
  </code></pre>
  
  <p>There is actually a blank line between the header and the data I want, so ideally I could skip this also.</p>