title: Store text file content line by line into array
body: <p>all,I'm now facing the problem of no idea on storing the content in text file into the array.
  The situation is like, text file content: </p>
  
  <pre><code>abc1
  xyz2
  rxy3
  </code></pre>
  
  <p>I wish to store them into array line by line, is that possible? What I expect is like this:</p>
  
  <pre><code>arr[0] = abc1
  arr[1] = xyz2
  arr[2] = rxy3
  </code></pre>
  
  <p>I've try something like this, but seem like not work for me. If anyone can help me, really thanks a lot.</p>
  
  <p>The code is: </p>
  
  <pre><code>BufferedReader in = new BufferedReader(new FileReader("path/of/text"));
          String str;
  
          while((str = in.readLine()) != null){
              String[] arr = str.split(" ");
              for(int i=0 ; i&lt;str.length() ; i++){
                  arr[i] = in.readLine();
              }
          }
  </code></pre>