How to implement these classes into our program?
<p>this is our file data class</p>

<pre><code>package textfiles;
import java.io.FileReader;
import java.io.BufferedReader;
import java.io.IOException;

public class FileData { 

    public static void main(String[ ] args) throws IOException {

        String file_name = "write.txt";


        try {
            ReadFile file = new ReadFile(file_name);
            String[] aryLines = file.OpenFile();

            int i;
            for(i = 0; i &lt; aryLines.length; i++) {
                System.out.println(aryLines[i]);
            }
        }
        catch (IOException e) {
            System.out.println( e.getMessage()  );

        }
        try {

        WriteFile data = new WriteFile( file_name );
        data.writeToFile( "\nThis is another line of text" );

        }


        catch (IOException e) {
        System.out.println( "Text File Written To" );
        }

    }

}
</code></pre>

<p>this is where we write the file to a text file</p>

<pre><code>package textfiles;
import java.io.FileWriter;
import java.io.PrintWriter;
import java.io.IOException;


public class WriteFile {

    private String path;
    private boolean append_to_file = false;

    public WriteFile (String file_path) {
        path = file_path;
    }
    public WriteFile( String file_path , boolean append_value ) {

    path = file_path;
    append_to_file = append_value;

}
public void writeToFile( String textLine ) throws IOException {
    FileWriter write = new FileWriter( path , append_to_file);
    PrintWriter print_line = new PrintWriter( write );

    print_line.printf( "%s" + "%n" , textLine);

    print_line.close();

}
</code></pre>

<p>this is where we read the text class</p>

<pre><code>package textfiles;

import java.io.IOException;
import java.io.FileReader;
import java.io.BufferedReader;


public class ReadFile {
    private String path;

    public ReadFile(String file_path){
        path = file_path;

    }
    public String[ ] OpenFile() throws IOException{
        FileReader fr = new FileReader(path);
        BufferedReader textReader = new BufferedReader (fr);

        int numberOfLines = readLines( );
        String[ ] textData = new String[numberOfLines];

        int i;

        for (i=0; i &lt; numberOfLines; i++) {
            textData[ i ] = textReader.readLine();

        }
        textReader.close( );
        return textData;

    }
    int readLines() throws IOException {
        FileReader file_to_read = new FileReader(path);
        BufferedReader bf = new BufferedReader(file_to_read);

        String aLine;
        int numberOfLines = 0;

        while ((aLine = bf.readLine()) !=null) {
            numberOfLines++; 
        }
        bf.close();

        return numberOfLines;


    }


}
</code></pre>

<p>I'm new to the site. My programming skill is not that good. I was wondering if somone could help us implement this into our program.</p>
