• Post Reply Bookmark Topic Watch Topic
  • New Topic

OutputStream with command environment PROBLEM

 
Tommy Lee
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I write the follow code one is pass but the other one throw exception
CODE
------------------
try{
File file = new File(file_name);
FileOutputStream fos = new FileOutputStream(file,true);
fos.write(content.getBytes());
fos.close();
}catch(FileNotFoundException e){
throw new RuntimeException(e.toString());
}catch(IOException e){
throw new RuntimeException(e.toString());
}
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry, what's your question?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!