Is it possible to do variable readings in arquivos.ini
with C ++?
Ex:
host = "localhost"
name = "username"
pass = "password"
port = 1010
When reading from this file I set it to ifstream
.
ifstream dados;
dados.open("arquivo.ini);
while(getline(dados, linha)){
void sethost(linha){
this->host = linha;
}
}
Given that I want only the value of each ex: host variable I want localhost
.