Reading from File

OK here's a scenario...

I have a long list of recipe, within these recipes, there're details like ingredients, procedures...etc.

i'd like to store this information into a file and everytime the application starts, it reads from this file and construct sort of a database in the program. picture along with the info. would be nice too...

my question is, what's the most efficient way in doing this. reading from file and add them into array?

any help or suggestions would b much appreciated

thanks

[537 byte] By [CUIDAa] at [2007-11-26 18:48:59]
# 1
I would suggest you going against a file, and instead use a Database.Once you have read the values from your data source, you can use a List or a Set, or even a Map.
FUN_ONEa at 2007-7-9 6:23:00 > top of Java-index,Core,Core APIs...
# 2
database sounds so much sensible...but with me being so new to java, how does it all work? any links i can read up on?thanks
CUIDAa at 2007-7-9 6:23:00 > top of Java-index,Core,Core APIs...
# 3
[url= http://www.google.com/search?q=java+jdbc+tutorials]Java JDBC Tutorials[/url]
FUN_ONEa at 2007-7-9 6:23:00 > top of Java-index,Core,Core APIs...