Skip to content

Instantly share code, notes, and snippets.

@pathway27
Forked from anonymous/ton.java
Created August 19, 2014 08:45
Show Gist options
  • Save pathway27/64c526eb2d939d4762d5 to your computer and use it in GitHub Desktop.
Save pathway27/64c526eb2d939d4762d5 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