fstream infile("itemlist.txt", ios::in);
int Size = 0;
string temp;
string item1[100];
while( !infile.eof() ){
getline(infile, temp);
item1[Size] = temp;
Size++;
}// done reading file
infile.close();
for(int i = 0; i < Size; i++){
cout<<i+1<<". "<<item1[i]<<endl;
}