I am trying to take some data in file that looks like this
command colnum_1 columnum_2
and look for the command and then cange the value in the collum(word)
number indicated. I am under
the impression I need enumerate but I am not sure what to do with it
any help would be nice.
import sys
On Aug 22, 1:14 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I am trying to take some data in file that looks like this
command colnum_1 columnum_2
and look for the command and then cange the value in the collum(word)
number indicated. I am under
the impression I need enumerate but I
On Aug 22, 7:56 am, Chris [EMAIL PROTECTED] wrote:
On Aug 22, 1:14 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I am trying to take some data in file that looks like this
command colnum_1 columnum_2
and look for the command and then cange the value in the collum(word)
number
Chris:
Iterate over your input file, split the line into it's component
parts
and then lookup if the first element 'command' is contained in the
replacement data and if so change the data.
If you want all input to be saved into your output file, just
dedent
the 'outFile.write'