saving defined arraylist into FILE ! DUE TOMORROW ! HELP !!!
public static void UpdateFile(ArrayList p) throws IOException
FileWriter fWriterStream = new FileWriter ("StudList.txt");
BufferedWriter out = new BufferedWriter (fWriterStream);
Object  ar = p.toArray(ar);
for(int i = 0; i <p.size(); i++)
// the code above is not working ! it says 'out' is not found !i have an array list passed to a method (shown above), because ive ammended its content, so at the end of the code, i have to save it back to the textfile named "StudList.txt", i check online to diffferentiate bufferedreader, output, bla bla, but i cannot adapt any of the concepts since i was facing code from this morning, help !!!