What's the difference between these standard options?

Scott Palmer swpalmer at gmail.com
Tue Dec 27 20:15:15 PST 2011


I believe the intention is that CREATE will make a new file overwriting an existing one of the same name, should such a file exists.  Whereas CREATE_NEW will not overwrite an existing file.

Scott

On 2011-12-27, at 3:38 PM, Paulo Levi wrote:

> StandardOpenOption CREATE
> StandardOpenOption CREATE_NEW
> 
> 
> 
> The language seems equivalent to me...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20111227/f8c811df/attachment.html 


More information about the nio-discuss mailing list