I'm currently writing a java program that requires some Data to run.
The data isn't particularly extensive; it's a list of all elements of the periodic table (in both symbol and full name) verse their atomic mass, up to about 7 decimal places each.
Currently, I have this data stored in a .txt file on my computer in the directory of my Java program, and I intend to simply read it and manipulate it into my intended data types. I do this on my Windows 7, 32 bit PC.
However, I wish for my program to be fully compatible on all platforms that can support Java, such as mobile devices.
Is there any special considerations I need to make in regards to file IO to ensure the program is compatible?
I have no idea how file IO works on platforms such as Android or iPads, or even Macs. How should I perform this data importation such that the program can still be run on all Java compatible platforms?
One possibility I've considered is to have these data types 'manually' embedded into the code.
I.e.; I do not import the Data from file but instead code it straight into the program (which would make the Data unalterable after compilation, which I feel is bad practise).
I've also wondered whether I should be using Java ME instead of SE too.
Thanks!
Specs:
Java SE (jre 7) Application.