Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Opinions: ArrayList Vs. File IO

Options
  • 02-10-2007 9:06am
    #1
    Closed Accounts Posts: 364 ✭✭


    Hi Folks,
    Just wondering what peoples opinons were on using an ArrayList of up to 500 strings (of size no more than 10 chars).

    Is this too large? Should I use file IO for this instead? Would this be even slower when searching for an item as you would have to read the entire file each time,

    Thanks


Comments

  • Registered Users Posts: 378 ✭✭sicruise


    That is only 5000 chars!

    Of course it'll much faster loaded into memory in an ArrayList format.


  • Closed Accounts Posts: 364 ✭✭Paligulus


    Cheers for that. That's what I though!!! For some reason I started thinking it was bad programming practice.


  • Registered Users Posts: 378 ✭✭sicruise


    No problem :)


Advertisement