Please check the following attached file .
It helps to resolve your problem
Second thing is it helps to display the data from result to datatable without
knowing number of columns and name of the columns . Even I used text alignment
for numeric column.
Please change text file to java file.
If any query please call any time