Reputation: 9361
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();
Upvotes: 1
Views: 394
Reputation: 1489
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.
Upvotes: 2