1
I have a question, I’m a beginner. I wanted to list all the key names of an ini file, but only the name of the keys and loop from the first item to the last.
char lista[255];
GetPrivateProfileSection("ITENS",lista,255, ".\\arquivo.ini");
ostringstream os;
os << listando;
for(int a = 0; a < lista; a=a+1){
os << lista[a];
}
I want the keys requested 1, requested 2, requested 3...
Arquivo.ini
[ITENS]
pedido1 = 3552
pedido2 = 2208
pedido3 = 2066
pedido4 = 5787
pedido5 = 2966
pedido6 = 8889
Quick tip, in increment do a++ because it will be better than a=a+1
– Luiz Augusto