i am not getting output of above code nor exception. but length function gave me correct answer i.e. 52001 . and i am able to write output in file but not able to show through System.out.println() at console ;
can someone help me to determine what went wrong ?
There might be a limitation on the length of output that can be printed for the console (if you are using IDE like NetBeans or Eclipse that is probably it).
The quieter you are, the more you are able to hear.