Finallyy fixed the problem (like I said it was an easy fix). I initialized the writer and reader variables in loggerIO. Also changed Formatter to FileWriter because Formatter doesn't overwrite, rather, kills, and writes. Use what's already there.