title: How to read a String (file) to array in java
body: <p>Suppose there is a file named as SUN.txt</p>
  
  <p>File contains : a,b,dd,ss, </p>
  
  <p>I want to make dynamic array depending upon the number of attributes in file.
  If ther is a char after comma then array will be of 0-4 i.e of length 5. 
  In the above mentioned case there is no Char which returns 0-3 Array of length 4. I want to read the NULL after comma too.</p>
  
  <p>How do i do that?</p>
  
  <p>Sundhas </p>