I have a textfile which contains something like this: 1|2|3|4|5|.......23|24|25
I need to read this file, tokenize the values and enter the values in a 2D array.
for(i=0; i<size; i++) 
{
    for (j=0; j<size; j++)
    {   
        board[i][j] = *buffer;
        buffer++;
    }
}
I need to tokenize the values using "|" as delim and enter the values into the 2D array... Please help. I know the above is not correct, pls help.
 
     
     
     
    