I have a quite long chain of numbers between 0 and 3. I'm wondering how I can save it so that it uses the least disk space possible. I've been thinking on it, and I have noticed that a number from 0 to 3 can be also two binary digits, so it might be a good idea to save it as a binary.
I would like also to save it on a custom filetype for make my app the single one that reads it, but it's not essential (however, it would be appreciated).
I found this questions also, that may be useful, but I haven't found the way to do it:
But I can't find any question or blog or something about how to create a custom filetype on iOS, only questions about how to associate it to an app.
If you need some more information, ask me!
Thanks in advance!!!
EDIT:
The chain will be about hundreds, I think that it will be smaller than 1000. Really, what I'm trying to achieve is to save a invented DNA data, and the DNA bases are A, G, C and T, that can be converted to 0, 1, 2, 3; but if I save that as a text file it would be much bigger. The only thing that I'll do with it is calculate the complementary base (G > C, C > G, A > T, T > A).
Thanks you again for your attention!!