exception in fiel
hi ,
am getting a null pointer exception in the code,
actually i have a large set of data in my file as
18.0909 1
19.0872 2
....
i am reading the file and tryin to extract the data in two arrays as float and integer,
am getting exception
caan you help me to solve that ....
try{
FileReader fread =new FileReader("DIS.txt");
BufferedReader bread =new BufferedReader(fread);
int i=0;
int k=0;
do{
text = bread.readLine();
value = text.split("\\s");// null pointer exception @ this line
fvalue[i] = Float.parseFloat(value[0]);
System.out.println("float value :"+fvalue[i]);
ivalue[k] = Integer.parseInt(value[1]);
System.out.println("int value :"+ivalue[k]);
i++;
k++;
}while(text !=null);

