@@ 0,0 1,31 @@
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.ajtjp.gearCity;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.util.Scanner;
+
+/**
+ *
+ * @author Andrew
+ */
+public class TurnEventsEmptier {
+ public static void main(String[] args) throws Exception{
+ File file = new File("C:\\Software\\Games\\Steam\\steamapps\\common\\GearCity\\media\\Maps\\Great Lakes\\scripts\\TurnEvents.xml");
+ Scanner s = new Scanner(file);
+ FileWriter fw = new FileWriter("C:\\Software\\Games\\Steam\\steamapps\\common\\GearCity\\media\\Maps\\Great Lakes\\scripts\\TurnEventsPruned.xml");
+ while (s.hasNextLine()) {
+ String line = s.nextLine();
+ if (!line.contains("<cityChange")) {
+ fw.write(line);
+ fw.write("\r\n");
+ }
+ }
+ fw.close();
+ s.close();
+ }
+}