[Tutor] editing a file

steve king its_steevo@hotmail.com
Fri, 24 May 2002 09:13:41 +0100


Hello everyone, the help I had last time from the tutors was so good I need 
another fix :-)

Ok I have worked out how to read and write files (its not that hard after 
all). But now I need to be able to edit these files. This is the situation:

In a config file I have the following:

[Main]
AAA=
BBB=
CCC=
DDD=

What I want to be able to do is insert another string like "EEE=" 
between,say, "BBB=" and "CCC=" or anywhere in the file. How do I do this? I 
know there is a function called seek() but the documentation is a little 
sparse.



_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com