I have an application that saves all its data to a text file. It can then load the textfile and reinstate the data. That works great. But my problem is I'm not actually saving all the data I want to yet; my program uses jpegs I am not saving. During runtime my program stores paths to the jpgs and loads them as needed. I know how to write the jpgs to disk. But I would like all my data for the program to be saved to a single document.
So my question is, is there perhaps anyway I could write a jpg into a format that could be added to a textfile, or a
string? If so I could just tag it and then split() the whole text file when I need to load the data, as I have been doing with my other data. If not, I was thinking I could do a simple xml document that stored the textfile with my application data and then the jpgs as well. But I don't know how to store jpgs in xml. Are there any solutions? Thanks.