Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public static void Rasyti(String failas) throws IOException {
  2. BufferedWriter output = null;
  3. try {
  4. output = new BufferedWriter(new FileWriter(failas));
  5. output.write("abcd");
  6. } catch ( IOException e ) {
  7. e.printStackTrace();
  8. } finally {
  9. if ( output != null ) {
  10. output.close();
  11. }
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement