My application relies on data stored in text files which I want to be able to edit after compilation.
I've learned that I have to recreate the text files to which my application refers after
exporting, in the
folder containing the executable.
My question is:
is there a way for .txt files to remain intact, editable with an editor, while automatically getting
exported and placed in the folder containing the executable?
The reason I'm asking this is because I will give my application to someone running OSX. How and where, being a windows user, should I put the extra files to the
exported OSX archive(?)?
But I want to do this using the string I have. Something along the lines of string1.drive() - which I know is impossible.
I know that this has something to do with Java's
reflectionand methods such as
newInstance() and
forName() but I don't understand the examples I've found already.