File f;
f= new File(filepathCreateTable);
if(f.exists()) f.delete();
f= new File(filepathCreatePrimarykey);
if(f.exists()) f.delete();
f= new File(filepathCreateSequence);
if(f.exists()) f.delete();
f= new File(filepathCreateTrigger);
if(f.exists()) f.delete();
f= new File(filepathCreateIndex);
if(f.exists()) f.delete();
}
public static void write(String path, String content) {
String s = new String();
String s1 = new String();
try {
File f = new File(path);
if (f.exists()) {
} else {
f.createNewFile();
}
BufferedReader input = new BufferedReader(new FileReader(f));
while ((s = input.readLine()) != null) {
s1 += s + "\r\n";
}
input.close();
s1 += content;
BufferedWriter output = new BufferedWriter(new FileWriter(f));
output.write(s1);
output.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}