×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
1
Language: Java
Posted by: Bruno Flores
Added: Feb 13, 2017 6:39 AM
Modified: Feb 13, 2017 6:42 AM
Views: 35
Tags: append java text
  1. try {
  2.             Files.write(Paths.get("C:\\Users\\toshiba\\Documents\\ScriptLobo.txt"), text.toString().getBytes(), StandardOpenOption.APPEND);
  3.         } catch (IOException ex) {
  4.             System.err.println("God Dammit " + ex.toString());
  5.         }