HELP NEEDED

am getting an error and this statement seems to be a problem
am not seeing but i feel so


void readfile()/*Function to read from roomdata_in.txt*/
{
if(reader.is_open())
{
for(int i=0;!reader.eof();i++)
{
reader>>room[i].area>>room[i].status;

if(reader.eof())
{
reader.close();
}//end if
}//end for
}//end if
}//end void
What error are you getting?
Topic archived. No new replies allowed.