I am accessing a file in the following way
ifstream infile("Info.txt",ios::in);
while(infile>>freq>>dbels)
{
arr1[i]=freq; //of course all the variables are declared
arr2[i]=dbels;
i++
}
However, now I want to put a limit on either the freq or dbel value that I take in. i have tried
do
{
infile>>freq>>dbels;
..................
} while(freq<=2000);
However this is not working.
Any suggestions,
Thanks,
DBB