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