زياد بن عبدالعزيز الباتلي wrote:
> Alan Gauld wrote:
>> "Diana Hawksworth" <[EMAIL PROTECTED]> wrote
>>
>>> How do I find a particular name, change the score and then save
>>> the changes back to the text file again??
>> iterate over the file checking (and modifying) each line
>> write the line bac
Alan Gauld wrote:
> "Diana Hawksworth" <[EMAIL PROTECTED]> wrote
>
>> How do I find a particular name, change the score and then save
>> the changes back to the text file again??
>
> iterate over the file checking (and modifying) each line
> write the line back out:
>
> Pseudo code
>
> Out = op
"Diana Hawksworth" <[EMAIL PROTECTED]> wrote
> How do I find a particular name, change the score and then save
> the changes back to the text file again??
iterate over the file checking (and modifying) each line
write the line back out:
Pseudo code
Out = open('foo.txt','w')
for line in file('f
Dear list,
I have been teaching Python with minimal knowledege myself!! I need to be able
to search a text file that perhaps contains names and scores. How do I find a
particular name, change the score and then save the changes back to the text
file again??
Thanks for any help. Diana