1

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();
palacsint
  • 28,416
  • 10
  • 82
  • 109
Ben Taliadoros
  • 7,003
  • 15
  • 60
  • 97

1 Answers1

2

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.

Jay Patel - PayPal
  • 1,489
  • 1
  • 11
  • 20