File file = new File(filename);
File parentFile = file.getParentFile();
if (parentFile != null && !parentFile.exists()) {
parentFile.mkdirs();
}
dataContext = new CsvDataContext(file, getConfiguration(separatorChar, quoteChar));
final Schema schema = dataContext.getDefaultSchema();
dataContext.executeUpdate(new UpdateScript() {
@Override
public void run(UpdateCallback callback) {