eneate
asked on
Loading text from an external file, can I use a text file or would a ms access type database work better
Hi All
I need to load text into an application from an external file. The external file will be duplicated in different languages and which ever language is selected that file will load in. I already use this for my forms etc.
However in one form I am continually loading the text into a rich text box and as the text is loaded from an array (i. e. it is all loaded every time it is accessed) after so many lines it crashes the software.
With the same code if it is just direct text in the code it no longer crashes.
I need a more efficient way to load the text and am considering something like an access database file.
At present to call the text I just use text(56) which calls the text in line 56
What would be the most memory efficient way to implement this
Ideas??
I need to load text into an application from an external file. The external file will be duplicated in different languages and which ever language is selected that file will load in. I already use this for my forms etc.
However in one form I am continually loading the text into a rich text box and as the text is loaded from an array (i. e. it is all loaded every time it is accessed) after so many lines it crashes the software.
With the same code if it is just direct text in the code it no longer crashes.
I need a more efficient way to load the text and am considering something like an access database file.
At present to call the text I just use text(56) which calls the text in line 56
What would be the most memory efficient way to implement this
Ideas??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks I've figured it out and it will work fine, thanks for the response.
ASKER
How can I differntiate between the different resource files. I don't want to have to complile a different exe for each language.