Okay, so I'm trying to use the new Files.write method in Java. Here is a link
It says the StandardOpenOption is optional, but everytime I leave it blank, and even when I do put something in there I get a compiler error. For Example...
try{
Files.write("example.txt",byte[] byteArray);
}
catch(Exception e){}
will result in The method write(Path, byte[], OpenOption...) in the type Files is not applicable for the arguments (Path, String)
See Question&Answers more detail:os