|
-
May 19th, 2002, 05:11 PM
#1
Thread Starter
Lively Member
Editing a file
Hi All,
I've learned how to append a file. My problem is that I need to add a line to the middle of the file.
example:
Im trying to add the line ME=C:\WINDOWS\ME.PWL
to the [Password Lists] section within system.ini
I'm pretty sure that I need to read the system.ini file into a variable then use code to find the [Password Lists] section and then add the line ME=C:\WINDOWS\ME.PWL into it. Then close the file.
Can someone please post the basic code/syntax that's needed.
Thank you,
Pat
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|