string or vector

hi, i want to save character set ganerated by rand() function to a file and then compare another character sets,and i am interested which way is better to save it in vector or in string variable??
Topic archived. No new replies allowed.