4
How I import an ini configuration file so that it is loaded and returns with a key value:
Example:
[version]
code=0.3
the program will load the ini file and I select the section (in case it is 'version'), select the key (in case it is 'code') and the / method function returns with the value 0.3
Mercy:
var strCode = GetStringFromFile("atualiza.ini", "version", "code");
Structure of the Archive (.ini):
[Seção]
Key=Value
I hear it would be with Dllimport and imports User32.dll but it makes no difference!
– FRNathan13
It makes more sense to store the information on
app.config
...– Tiago César Oliveira
It is a business requirement to import data from an ini file?
– Tiago César Oliveira
i want to upload the file (.ini) of another program and it only supports the configuration file (.ini)
– FRNathan13