0 Replies - 3105 Views - Last Post: 15 May 2008 - 04:08 AM Rate Topic: -----

#1 anu86  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 15-May 08

Reading multiple values of a single key in an ini file using vb.net

Posted 15 May 2008 - 04:08 AM

Hello all,

I am a newbie in vb.net and trying to read the ini file.
Now i have got a doubt about how to read the ini file, when there are multiple values for a single key in an ini file using vb.net.
A part of my ini file "win.ini" looks like the following:

[section1]
key1=value1
key2=[
value2
value3;comment;comment
value4;comment;comment;
]


and each value should do some operation like initialization, execution of some tool etc.. so i am supposed to store all the values in an array, and should use the values one after another.
Please help in reading this. attched is the example of my ini file.


now , when i recieve the section sec1 or say some other sec say sec3, i shd be able to read the values in that section, and..
1) the first key, i.e. Instructionname shd get its particular value and shd print it on a text box
2) meanwhile, i shd be able to read the multi lines values of the key "Actions" ,
and each value in key "Actions" , shd perform some operation, say initializing or executing some tool etc..
so, i shd be able to retrieve the each value and shd perform its respective operation.

can you help me in this..
I am not able to read the seccond key values i.e "Actions" key.

Thanks in advance

Attached File(s)

  • Attached File  win.txt (3.48K)
    Number of downloads: 190

This post has been edited by anu86: 15 May 2008 - 09:01 PM


Is This A Good Question/Topic? 0
  • +

Page 1 of 1