@@ -0,0 +1,1105 @@
+/*%0A * Logs strings to a file%0A */%0Apackage com.team254.lib.util;%0A%0Aimport com.sun.squawk.microedition.io.FileConnection;%0Aimport java.io.IOException;%0Aimport java.io.OutputStreamWriter;%0Aimport javax.microedition.io.Connector;%0A%0A/**%0A *%0A * @author tom@team254.com (Tom Bottiglieri)%0A */%0Apublic class Logger %7B%0A  String filename;%0A  OutputStreamWriter w;%0A  FileConnection c;%0A%0A  public Logger(String filename, boolean open) %7B%0A    this.filename = filename;%0A    if (open)%0A      open();%0A  %7D%0A%0A  public Logger(String filename) %7B%0A    this(filename, false);%0A  %7D%0A%0A  public void open() %7B%0A    String loc = %22file:///%22 + filename;%0A    try %7B%0A      c = (FileConnection) Connector.open(loc);%0A      OutputStreamWriter writer = new OutputStreamWriter(c.openOutputStream());%0A    %7D catch (IOException ex) %7B%0A      ex.printStackTrace();%0A    %7D%0A  %7D%0A%0A  public void log(String s) %7B%0A    if (w == null) %7B%0A      return;%0A    %7D%0A    try %7B%0A      w.write(s);%0A    %7D catch (IOException ex) %7B%0A      ex.printStackTrace();%0A    %7D%0A  %7D%0A%0A  public void close() %7B%0A    try %7B%0A      c.close();%0A    %7D catch (IOException ex) %7B%0A      ex.printStackTrace();%0A    %7D%0A  %7D%0A%7D%0A

Add Logger class