java – I do not understand why the use of the BufferedReader class does not write to the file

By testing this method, I do not write to the file I and I do not understand why because the method of writing has for parameter a intHowever, if I use fout.write ("" + i)he's doing it.

public void Conversor () throws IOException {
// scroll through the letters of the file
int j = 0; // corresponds to the index of the letter table
int i = 0;
char[] arraychar;
Rope line;
Boolean output = true;

while ((line = end.readLine ())! = null) {// read a line from the file
arraychar = linea.toCharArray ();
}

while (exit) {
fout.write (i);
exit = false;
}
fout.flush ();
fout.close ();



}