void writeTable(String name) {
        PrintStream output;
        output = null;
        try {
            String sep;
            sep = "";
            output = new PrintStream(name + ".db");
            for (int i = 0; i < _columnTitles.length - 1; i++) {
                output.append(_columnTitles[i]).append(",");
            }
            output.append(_columnTitles[_columnTitles.length - 1])
                .append('\n');
            for (Row r : this) {
                for (int j = 0; j < r.size() - 1; j++) {
                    output.append(r.get(j)).append(",");
                }
                output.append(r.get(r.size() - 1));
                output.append('\n');
            }
        } catch (IOException e) {
            throw error("trouble writing to %s.db", name);
        } finally {
            if (output != null) {
                output.close();
            }
        }
    }