probably for the same reason fgets returns a pointer to the buffer sent...
cout << "you just typed " << fgets(buf, 10000, fp) << endl;
probably for the same reason fgets returns a pointer to the buffer sent...
cout << "you just typed " << fgets(buf, 10000, fp) << endl;