title: How to read file by charachter-by-symbol method and put it to array?
body: <p>I have a text file, which has many words. They're united by two-three words by ':' and devided from other groups by '.' </p>
  
  <p>There're 100 groups.</p>
  
  <p>For example:</p>
  
  <blockquote>
    <p>Programmer:Web-Designer:System
    Administrator.Biologist:Pharmacist:Chemistry Teacher.</p>
  </blockquote>
  
  <p>All words before the dot are single group.</p>
  
  <p>My purpose is to add all groups of words to two-dimensional array [10][10] (whole size is 100 elements).</p>
  
  <p>My code:</p>
  
  <pre><code>public static void main(String[] args) throws FileNotFoundException {
      String[][] array = new String[10][10];
  
      try (BufferedReader br = new BufferedReader(
              new FileReader("C:\\Users\\Alexey\\eclipse-workspace\\Plugin\\src\\MatProList.txt"))) {
  
          for (int i = 0; i &lt; 10; i++) {
              for (int c = 0; c &lt; 10; c++) {
                  while ((char)br.read() != '.') {
                      array[i][c] = array[i][c] + (char)br.read();
                  }
              }
  
  
              if (br.read() == -1) {
                  break;
              }
          }
      } catch (IOException ex) {
  
          System.out.println(ex.getMessage());
      }
  }
  </code></pre>
  
  <p>What do I wrong here? Please, help.</p>