How do you open specific text files on python?
<p>I want to open specific lines from an ordinary text file in python. is there anyway to do this? and how?</p>

<p>presuming that you want the line <code>m</code> and the name file is <code>file.txt</code></p>

<pre><code>with open('file.txt') as f:
    line = f.read().splitlines()[m]
print(line)
</code></pre>

<p><code>line</code> is the line that you want.</p>

python