Generating dynamic menus

Hi there,

I’m a bit of a newbie here so forgive me if this is obvious.

What I’m trying to do is generate some a menu with submenus. The whole menu is driven by the data held in a txt file or something like that.

The data in the file might look something like:-

a_a_1
a_a_2
a_b_1
a_b_2
a_b_3

b_a_1
b_b_1
b_c_1
b_c_2

Hopefully you get the idea.

What I would like to do is read this data into an array. The menus would then be created and broken down into submenus.
For the above there would be two main menu options ‘a’ and ‘b’, under those would be submenus ‘a’,‘b’,‘c’ and under those, submenus 1,2,3. You get the idea. Each link would then take you off to a frame with a particular image on it, again this would come from the list.

Can anyone suggest and solutions or recommend any tutorials on this sort of thing.

Thanks in advance,

Nick