Example of what im trying to do:
Definition: test.txt
Apples //line1
Coke //line2
Money/line3
#include <fstream>
using namespace std;
fstream teststream;
teststream.open("test.txt");
string line1;
string line2;
string line3;
//I want it so line1 = apples
//I wan tit so line2 = coke
//I want it so line3 = money
I'm not sure how to do this, so any help would be very appreciated :).