Hi,
If I want to read a line of unspecified length and discard it, which derivative of getline() should I use?
If I use getline(str, 80, "/n") I keep the first 80 chars but also I need to know that I won't be reading more than 80 chars. Is there any way around this?
Thanks
P.
If I want to read a line of unspecified length and discard it, which derivative of getline() should I use?
If I use getline(str, 80, "/n") I keep the first 80 chars but also I need to know that I won't be reading more than 80 chars. Is there any way around this?
Thanks
P.