Hi all,
I think we can do it by this way.... This is a general Algorithm.
take some initial size of the No_Of_row = 2;
int oldData[] [] = null;
intialCounter = 0;
While(Read the File till EOF){
str := first line of the file.
col[] := split the 'str' by using the specific operator (In Our case its ',')
oldData = new int[No_Of_row][col.length];
initialCounter++;
if(initialCounter > No_Of_row){
int newData[][] = new int[initialCounter][col.length];
System.arrayCopy(oldata,0,newData,0,initialCounter - 1);
}else{
oldData[initialCounter - 1] = col;
}
}
Thanks and Regards
Nirav Joshi