I have finished my project, and now I have deployed it to jar file. But I have met a problem:
My program auto generate a file (For example: data.sav) in Eclipse, it appears at the foremost project folder. When I deploy, this file doesn't contain to jar file. So, it start with no data.
After I run and do sth, it has made data.sav again. But, I don't see this file in that jar file. I say this because I hope I will overwrite my old data.sav to new data.sav.
So, please teach me, how to include "data.sav" to jar file. I don't see this option when deploy in Eclipse.
Here is the code I want to write file:
ObjectOutputStream writer = new ObjectOutputStream(
new FileOutputStream("data.sav"));
For more clearer why I do that. For example, a game has a list that contain most 10 people highscore. when you first play, no people play,yet, so I must "cheat" by write some people in this highscore list, so my program has some "dummny player" that has played before.