Create a non-existent .csv file in Java

My Java program needs to be able to create (if non-existent) an empty .csv file in an empty folder. I managed to create the directories with:

final Path path = Paths.get("c:/Program Files/MyProgram/"); Files.createDirectories(path.getParent()); 

How can I create the empty .csv file now? I am getting lost in http://opencsv.sourceforge.net/ , I don’t seem to understand.

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.