python. write to file, cannot understand behavior
<p>I don't understand why I cannot write to file in my python program. I have list of strings <code>measurements</code>. I want just write them to file. Instead of all strings it writes only 1 string. I cannot understand why.
This is my piece of code:</p>

<pre><code>fmeasur = open(fmeasur_name, 'w')
line1st = 'rev number, alg time\n'
fmeasur.write(line1st)
for i in xrange(len(measurements)):
    fmeasur.write(measurements[i])
    print measurements[i]
fmeasur.close()
</code></pre>

<p>I can see all print of these trings, but in the file there is only one. What could be the problem?</p>
