Hi, I'm reading a file line by line, and whenever a line is not
consisted of a single number (such as 0.315), I want to discard that
line (and store only the single numbers).

For example,

0.315
discarded this line of text
3.8
-1.44
forget about me also
2.6


Then I want to store only the four numbers into another file, without
the two sentences.  
Suggestions are appreciated!

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to