Skip to content

Instantly share code, notes, and snippets.

@delexi
Last active December 19, 2015 02:49
Show Gist options
  • Save delexi/5886134 to your computer and use it in GitHub Desktop.
Save delexi/5886134 to your computer and use it in GitHub Desktop.
FOS
try {
FileOutputStream fos = new FileOutputStream(new File("fostest.tmp"));
fos.write("Hello".getBytes());
fos.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment