Frage

This may sound easy but I when debugging through this code it just stops debugging, can't work out if its throwing an exception or not. What am I doing wrong?

Writer output = null;
File file = new File("write.txt");
output = new BufferedWriter(new FileWriter(file));
for (int i = 0; i < audioDataDoubles.length; i++) {
    output.write(audioDataDoubles[i] + "\n");
}

output.close();
War es hilfreich?

Lösung

It might be the case that you are creating a file at the location where you dont have the write access. Make sure if you have that.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top