Storing Information in String?

Is it possible to store information in a string without user input? If so, what code would I use for it?
Where are you going to get the information from, if not from user input?
It is for a shcool assignment, and I figured it out.
Topic archived. No new replies allowed.