most server's wouldn't store user info in a plain text file(for security,speed,ease of use). They would most likely use MySQL, Oracle or another database management system.
different. Often, the authentication data as passwords are stored somewhere else, because the application uses a library for authentication (which is handling the data). Some application use OS authentication information, so you find the data in these places (e.g. /etc/passwd)
Simplier applications like small "hacked together" websites just store everything in some mysql database.
But.. you know... it has hardly anything to do with C++.... ;-)