A
AC Slater
In regards to the following code:
char tmp[6];
myifstread.read(tmp,5);
Does tmp[5] = '\0' by definition? E.g. does .read put the null terminator?
If not, why would it be that for months the print statement after the read
would show just 5 characters than out of nowhere sometimes it shows 5 chars
and then some garbage?
Just trying to understand whats going on here.
Frank
char tmp[6];
myifstread.read(tmp,5);
Does tmp[5] = '\0' by definition? E.g. does .read put the null terminator?
If not, why would it be that for months the print statement after the read
would show just 5 characters than out of nowhere sometimes it shows 5 chars
and then some garbage?
Just trying to understand whats going on here.
Frank