hey,
This might be naive, but how come this bit of code isn't working???
int lc=0;
read.open(filename_user.c_str(), ios::in);
while(getline(read, linecount, '\n'))
{
++lc;
}
Have looked through the internet, and this code seems to be fine, so what is it that makes it not work??
the output is always 0, no matter what file I try to open.