/* HOW MANY LINES OF CODE DID YOU WRITE THIS YEAR? Jeff Thompson January 2012 Well, how many did you write? www.jeffreythompson.org */ int whichYear = 2011; // what year do you want to report? String sketchbook; int numFiles = 0; int lineCount = 0; int totalLines = 0; BufferedReader reader; void setup() { // get sketchbook folder sketchbook = sketchPath.substring(0, sketchPath.lastIndexOf(File.separator)); println("Reading in: " + sketchbook); // write list of all folders to a File array File folder = new File(sketchbook); File[] listOfSketches = folder.listFiles(); println(listOfSketches.length + " total sketches in your sketchbook"); // go through each folder println("\nChecking for files written in " + whichYear + "..."); for (int i=0; i