User Tools

Site Tools


playground:playground

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
playground:playground [2021/10/08 13:33] 176.63.11.125playground:playground [2023/03/28 09:46] (current) tamasj
Line 1: Line 1:
-<code java [enable_line_numbers]="true"> +<code xml [enable_line_numbers]="true">
-try { +
-  FileOutputStream fos = new FileOutputStream("test.txt"); +
-  DataOutputStream dos = new DataOutputStream(fos); +
-  dos.writeUTF("This is a test for writing to a file"); +
-  dos.close();+
  
-  fos.close(); 
- 
-} catch (IOException ex) { 
-  System.out.println(ex.getMessage()); 
-} 
 </code> </code>
 +[[playground:playground:pelda:pelda|]]
playground/playground.1633700034.txt.gz · Last modified: 2021/10/08 13:33 by 176.63.11.125