How do I write to a file in eclipse?

Posted by fastcodejava on Stack Overflow See other posts from Stack Overflow or by fastcodejava
Published on 2010-04-15T03:13:50Z Indexed on 2010/04/15 3:23 UTC
Read the original article Hit count: 262

Filed under:
|

If I have handle to file how do I create a document and write to it? Right now, I am having to delete the file completely and recreate with new content as shown below :

IFile file = getFile(); 
file.delete();
file.create(input, false, null);

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse