@@ -0,0 +1,706 @@
+%0Apackage forager.server;%0A%0Aimport java.io.BufferedOutputStream;%0Aimport java.io.FileOutputStream;%0Aimport java.io.IOException;%0Aimport java.io.PrintWriter;%0A%0Apublic class ListManager %7B%0A%0A    private FileOutputStream taskListOut;%0A    private PrintWriter taskListWriter;%0A%0A    public ListManager() throws IOException %7B%0A        String taskList = %22tasklist%22;%0A        taskListOut = new FileOutputStream(taskList, true);%0A        taskListWriter = new PrintWriter(new BufferedOutputStream(taskListOut));%0A    %7D%0A%0A    public void addTask(String command) %7B%0A        taskListWriter.println(command);%0A    %7D%0A%0A    public void sync() throws IOException %7B%0A        taskListWriter.flush();%0A        taskListOut.getFD().sync();%0A    %7D%0A%7D%0A

Add task list manager