Skip to content

Instantly share code, notes, and snippets.

Created August 19, 2014 08:42
Show Gist options
  • Save anonymous/83aceb27d950a31a0d8e to your computer and use it in GitHub Desktop.
Save anonymous/83aceb27d950a31a0d8e to your computer and use it in GitHub Desktop.
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