View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
Jim[_13_] Jim[_13_] is offline
external usenet poster
 
Posts: 4
Default How to modify specific lines in a .ini file?

Hello,

When writing multiple values to a .ini file I'm familiar with the
following basic code:

Open "c:\my.ini" For Output As #1
Print #1, "1"
Print #1, "2"
Print #1, "3"
Close #1

Is there a way to modify/write values to specific lines only, for
example modifying the "2" value on line 2 to "5", without overwriting
the other lines with their unchanged values?

Thanks for any feedback!

Jim