Si el error es "bla bla bla must be caught to be thrown" o algo parecido prueba con Try/Catch.
Código (java) [Seleccionar]
try{
BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter("ist.bin"));
bufferedWriter.append("Fila 1:"+valores);
bufferedWriter.newLine();
bufferedWriter.flush();
bufferedWriter.close();
}catch (Exception e){
e.printStackTrace();
}