I've been looking for hours, looking through previous questions on all kind of forums, but i still didn't get it to work.

I have a tetris sort of game (it used pentominoes instead of tetrominoes).
I want to save a highscore list.
I have a text file in the same folder as my jar file (my exported project from eclipse),
and i want to be able to read a few lines (Strings and integers) from this file, and i want to override the data in the file at the end of the program.

I'm having huge problems with the paths to the file and making it work in diffrent directories...

I would appreciate any help! thanks in advance