Advertisement
popatop15

Untitled

Aug 7th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. try {
  2. output = new FileWriter("output.txt");
  3. } catch (IOException e) {
  4. System.out.println("Couldn't create output.txt!");
  5. e.printStackTrace();
  6. }
  7. if (output != null) {
  8. System.out.println("File create succesfully!");
  9.  
  10. writer = new BufferedWriter(output);
  11. try {
  12. writer.write(reverse);
  13. writer.close();
  14. } catch (IOException e) {
  15. System.out.println("Error!");
  16. e.printStackTrace();
  17. }
  18. }
  19.  
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement