Read to right of specific symbol in file from Python <p>I'm going to separate over 1000 virus signatures and the virus names. I have them all in a text file, and would like to do this with python. <br><br> <strong>Here is the format:</strong></p> <pre><code>virus=signature </code></pre> <p>I need to be able to take 'virus' and write it to one file, then take 'signature' and write it to another. <br></p> <hr> <p><strong>This is what I've tied so far</strong>:</p> <pre><code>h = open("FILEWITHSIGS") j = h.read() k = h.split('=') </code></pre> <p>And that is basically where I got stuck. No matter what I tried, it printed (or writed) both to the same place.</p>