How do i fill two dimensional char array with words?
<p>Do you have any idea how to populate array with words from stream? This is as far as i was able to go for now:</p>

<pre><code>ifstream db;
db.open("db") //1stline: one|two|three, 2d line: four|five|six....
int n=0,m=0;
char a[3][20];
char c[20];
while(db.get(ch)) {
    if(ch=='|') {
        a[0][m]=*c;
        m++;
    }
    else {
        c[n]=ch;
        n++;
    }
}
</code></pre>

<p>so that it looks like {{one,two,three},{four,five,six},{seven,eight,nine},...}</p>
