Post the code where you read the file, that makes life a lot easier.
But you'll have to do something like:
while (lines in file)
{
while (words in line)
{
storage[line][word] = inputread;
word++;
}
line++;
}
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
You can also use Getline with a third parameter as delimiter to obtain words.
Here's an example that reads a file word by word seperated by comma's
string word;
ifstream infile("something.csv");
while (getline(infile, word, ','))
{
cout << "Word: " << word << "\n";
}
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403