need help with random writer

so i have a project due at 11:55 tonight and i am overwhelmed. this is my first semester programming and im not very experienced with c++. the program is called [i]random writer[/i] for those interested. Anyways the basics i need to know is how to store all chars from a file into a string , use getline() with that string, how to subtract first value from said string(this maybe? (string newseed = substr(key(what all can go here?), 1)). also would this give me the char in the string at whatever value the rand() is?
len = 10
randNumber = rand()%len;
key1 = str2[randNumber];

any help would be greatly appreciated
yea guess thats the place to look thanks
Topic archived. No new replies allowed.