title: Reading from text area by line and assigning variables
body: <p>I need to append  variables to each line of text from a <code>TextArea</code>. The <code>TextArea</code> is coded, and works perfectly. I can retrieve  information from the <code>TextArea</code> by using <code>TextArea.getText();</code>
  To break it apart, I am trying to use a <code>BufferedReader</code>. Unfortunately, this does not work. Is there a different way of doing this?                   Here is an example of how the information needs to be written in the text area:      </p>
  
  <p>"workerName"</p>
  
  <p>"workerDepartment"</p>
  
  <p>"workerNumber"                                                                                                                                                                                                                                                                </p>
  
  <pre><code>BufferedReader inStream= new BufferedReader 
  (new InputStreamReader(TextArea.getText()));
  
  String workerName = "";
  
  String workerDepartment = "";
  
  int workerNumber = 0;
  
  String line = inStream.readLine();            
  
  while (line != null) {                        
  
   workerName = line;
  
   line = inStream.readLine();               
  
   workerDepartment = line;
  
   line = inStream.readLine();               
  
   workerNumber = Integer.parseInt(line);
  
   }
  
   inStream.close();                  
  </code></pre>