hello friends i need help
i need to write and save text file in java 
for reading i have used scanner and writing I have used formatter it works fine in eclipse 
but problem occurs when I execute runnable jar file.
jar file can't find score.txt file so there is problem of file path.
I think jar need resources where as File is not resource i have to convert it in to resource by
getClass().getResourceAsStream()..... method but then i have to use
InputStream 
 InputStreamReader
BufferedReader 
which i dont know and i have not much time for studying them so plz tell me there is any way to include text file in jar so that my jar file can find score.txt file 

my code for reading and writing is

class read {

public static Scanner xread;

public static void  openFileread()
{
try
{
xread=new Scanner(new File("score.txt")); // read  file
}
catch(Exception e)
{
e.printStackTrace();
}

}


public static Formatter x;



public static void  openFilewrite()
{

try{
x=new Formatter("score.txt");


}
catch(Exception e)
{
e.printStackTrace(); 
}
}
}