import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; public class AddFiles { static String pdir; private static void addEntry(String path, BufferedWriter out) throws IOException { System.out.print(path); out.write("\""+path+"\"-\""); path = path.substring(pdir.length()+1); path = path.substring(0,1)+":"+path.substring(1); System.out.println(" -> "+path); out.write(path+"\""); out.newLine(); } private static void addRemovalEntry(String path, BufferedWriter out) throws IOException { out.write("\"\"-\""); path = path.substring(pdir.length()+1); path = path.substring(0,1)+":"+path.substring(1); System.out.println(path+" (created later)"); out.write(path+"\",FN"); out.newLine(); } private static void parseDir(File dir, BufferedWriter out) throws IOException { String[] files = dir.list(); if (files != null) { for (int i=0;i