Hi all!
I have the following codes i use to read from a textfile.
however my above program hits an error when there is a blank line in the text file. i would only want to process the information if only the link is not blank. i have tried a couple of ways but they couldnt work.. is there anyway for me to check if the line is blank using the ifstream textfile that i got? and only if the line is not blank can i go process the data.Code:while(!textfile.eof()) { //textfile is a ifstream textfile >> string1 >> string2; //use strings for processing }
Thanks in advance