没有抛出任何错误。如果我指定确切的路径,它会起作用,但如果我只是说“output.csv”则不会
ResultSet rs = statement.executeQuery("select * from geninfo");
try {
CSVWriter writer = new CSVWriter(new FileWriter(new File("output.csv")));
writer.writeAll(rs, true);
writer.flush();
writer.close();
} catch (IOException ex) {
Logger.getLogger(SQLite.class.getName()).log(Level.SEVERE, null, ex);
}