C++ FILE HANDLING ISSUE

suppose there are 3 lines written in a txt file .And i am pickking up words 1 by 1 and putting it into an array using a variable ‘ch’ and comparing that
if(ch==’\n’)
{
break;

}

so now how can i read the next line and what will be the syntax so that my variable ‘ch’ goes to next line of the file???..