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.
"C++ : Where friends have access to your private members."
C++: You accidentally create a dozen instances of yourself and shoot them all in the foot. Providing emergency medical assistance is impossible since you can't tell which are bitwise copies and which are just pointing at others and saying, "That's me, over there."