Created
August 19, 2014 08:42
-
-
Save anonymous/83aceb27d950a31a0d8e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class IOException { | |
public static void main(String[] args) { | |
String path = "C:/TSK/TSK.txt"; | |
PrintWriter pwInput = null; | |
try{ | |
File fileExample = new File(path); | |
pwInput = new PrintWriter(fileExample); | |
pwInput.println("The Scrum Kings"); | |
} | |
catch(FileNotFoundException e){ | |
System.err.println(e); | |
} | |
finally{ | |
pwInput.close(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment