BufferedReader input = new BufferedReader (new FileReader("data.txt")); //Reading the file
String data [] = readFile (input); //data is each line in the file
String student [] = new String [10];
for(int x = 0; x<data.length; x++)
{
student = data[x].split(","); //each line is being split into 11 parts
}
I need to write in this file without overwriting it. I ask 10 questions like, "What is your first name?", and "What is your last name?". I need the answers of these questions going into a student []. Like I said, I need the code to write into this file without overwriting it.