Parsing Text file
toby at tobiah.org
Tue Jul 2 21:50:23 CEST 2013
On 07/02/2013 12:30 PM, sas429s at gmail.com wrote:
> Somemore can be anything for instance:
> and so on..
> Is there a way I can achieve this?
How do we know whether we have Sometext?
If it's really just a literal 'Sometext', then
just print that when you hit maskit.
for line in open('file.txt').readlines():
memory = line
if line == 'maskit':
More information about the Python-list