what is the best way to read a file format as below:


titleone 5
jim john brian george bill
titletwo 5
abc qwe zxc asd etrwe
titlethree 5
lkj mnb oio uyu trwww
titlefour 5
dfg lksjdf alskdj oipopi iuiuy

Need to create a dynamic 2d array with title as a base address.

thanx.

Is there any max size to the titles ?

Is there any way to determine how many titles are going to come in ?

Instead of a 2d array how about a linked list of structs ?

thanx for the reply...
basically need to create 2d array to store 5 strings of each title from one through four.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.