put () function writes a character to the stream, and its prototype is ofstream