title: String to String[] - Apache
body: <p>I am a student and I am new to programming in java. I have a problem with this code (which I did not write) that I was found, I wanted to know if possible, not knowing very well the apache library, if you could get one back from this method String [] s instead of a single string.</p>
  
  <pre><code>public static String getString() throws IOException {
      String content = null;
      File folder = new File("E:\\Result.txt");
      content = FileUtils.readFileToString(folder) + "\n";
      String remainingString = content.substring(content.indexOf("["),
              content.lastIndexOf("]") + 1);
      // System.out.println(remainingString);
      return remainingString;
  
  }
  </code></pre>
  
  <p>For clarity the content of Result.txt is a string. (For example [-8,6,1] [4,10,-1] [7,-5,3] [10,-8,3] [10,-8,-6]). And My Problem is that: I wish I maintain this the same format of the string (in result.txt) but use it with a string [] array. thank you very much</p>