trie

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
void readCSV(istream &input, vector< vector<string> > &output)
{
        string csvLine;
    
        while( getline(input, csvLine) )
        {
                istringstream csvStream(csvLine);
                vector<string> csvColumn;
                string csvElement;
                
                while( getline(csvStream, csvElement, ',') )
                {
                        csvColumn.push_back
                        (csvElement);
                }
                output.push_back(csvColumn);
        }
}


So this reads a .csv file. How can I change to read a .dic trie file?
¿what is a .dic trie file?
It's a dictionary file, which has to be read as a tree.
¿A trie or a tree?
¿what is the format of the file?
A trie. It's seperated by line.
Topic archived. No new replies allowed.