I created a text file love.txt:
love.txt
i love you you love me
How do I store them into separate array, namely line1 and
line1
How about this.. .
vector v; string line; ifstream fin("love.txt"); while(getline(fin,line)){ v.push_back(line); }