View Single Post
  #4 (permalink)  
Old 01-30-2008, 07:53 AM
roots's Avatar
roots roots is offline
Moderator
 
Join Date: Jan 2008
Location: Dallas
Posts: 258
roots is on a distinguished road
Code:
try { output = new BufferedWriter(new FileWriter(file)); //output.write(anAL); for (Iterator elementsInList = anAL.iterator(); elementsInList.hasNext();) { <WHAT IS IN THE LIST> element = (<WHAT IS IN THE LIST>) elementsInList.next(); output.write(<GET/MAKE String thing from your element>); } } finally { if (output != null) output.close(); }
Take care of exceptions in the code above as well ..
__________________
dont worry newbie, we got you covered.
Reply With Quote