title: How to read line by line from a text area
body: <p>I have figured out how to read in line by line and display the contents of a text document line by line into a jtextarea and I have figured out how to write out line by line from an array of strings to the text document. I am just having a hard time getting each line from the textarea, as soon as I can get each line into an array i am good to go. Below is the code I am going to use to write each line to the file...</p>
  
  <pre><code>public class FileWrite {
  
      public static void FileClear(String FileName) throws IOException{
          FileWriter fstream = new FileWriter(FileName,true);
          BufferedWriter out = new BufferedWriter(fstream);
          out.write("");
      }
  
      public static void FileWriters(String FileName, String Content) throws IOException
      {   
          FileWriter fstream = new FileWriter(FileName,true);
          BufferedWriter out = new BufferedWriter(fstream);
          out.append(Content);
          out.newLine();
  
      }
  }
  </code></pre>
  
  <p>Thanks</p>
  
  <p>c</p>