Read file and store it in variable.

Is there any way for C++ to read a file and store its content in a variable?
Topic archived. No new replies allowed.