C++ Read From/Write To Files
Heya, strange question, is it possible to make c++ read from a text file, and pick out a random line then shove that into a variable...
for example if the text file contained a differant sentence on each line eg
the cat sat on the mat
i ate chicken last night
please use a coaster
can you give me a lift
and so on and so forth, I just want the program to open that file with that list of sentences pick one out and stick it into a variable?
is this possible? please help... thanks alot ^.^