Hi
I need a better idea to implementing following in my code.
I need to store 80 long strings that will be used to display one by one in my GUI application. now i am storing those 80 long string in following two dimentational array.
uchar vpn_alm_long_str[MAX_ALARM][1024]={ }
each index will be an string index .
all strings would be defined static and this variable would be a global one .
so the issues that i can forsee
some issue with where this will be stored like in data segment (but don't know exactly the issue?/)
does not look good to store such big data structure in memnory when they are not going to be used always.
Insetad , if we can write all these strings in a file in a special format , and on run time we extract these string from that file , that sounds a good idea .
at least that file would be stored on disk not in the memory , and that would be brought in the memory only when it will be required to read and even that would be the only a string not the complete file ..
pls any other idea??
dav