Question

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();
Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top