Here's the code that works fine for me. The only line I changed is the file name:
import java.io.FileWriter;
import java.io.BufferedWriter;
public class TestClass
{
public static void main( String[] args )
{
sauve( "1735", "1927", 117, "My Name", 32 );
}
public static void sauve( String a , String b , int c , String d , int f )
{
int i;
try
{
FileWriter fw = new FileWriter( "./files/result.txt" );
BufferedWriter bw = new BufferedWriter( fw );
bw.write( "Name : " + d );
bw.newLine();
bw.write( "question number : " + f );
bw.newLine();
bw.write( "start time " + a );
bw.newLine();
bw.write( "Score : " + c );
bw.newLine();
bw.write( "finish time " + b );
bw.close();
}
catch ( Exception e )
{
System.out.println( "Error " + e );
}
}
}