I am writing a program that is suppose to read all the lines in a .ini file and then the program will configure the network connectivity.
ex.
ip = 128.123.156.46
then it would set the ip address to 128.123.156.46
i have tried this:
while(getline(infile, TheBuffer))
{
if(TheBuffer == "ip =")
}
but then i relised that i cant literly label each word in the file with that method.
so i thought about
char *buffer = new char [size];
but again i can label each word like that
so if i think i should read it into a vector string, but then you you get to the end of the file it will put the next word direclty next to the previes word without a enter, so i cannot use that method either.
How am i going to do this, i really thought that the new char method would work...
Thanks.