@@ -0,0 +1,2563 @@
+package virtualgameshelf.backend.fileIO;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.File;%0Aimport java.io.FileNotFoundException;%0Aimport java.io.FileReader;%0Aimport java.io.FileWriter;%0Aimport java.io.IOException;%0Aimport java.util.ArrayList;%0Aimport java.util.Arrays;%0A%0Apublic class TabSeparatedFileReader %7B%0A    // returns arrayList of entries from a tab separated .txt file%0A    public static ArrayList%3CString%5B%5D%3E readFromFile(String filePath) %7B%0A        File file = new File(filePath);%0A        String%5B%5D array; // Stores a single, split line entry%0A        ArrayList%3CString%5B%5D%3E arrayList = new ArrayList%3C%3E(); // ArrayList of all entries%0A        try %7B%0A            // http://stackoverflow.com/a/19575418/3357935%0A            FileReader fileReader = new FileReader(file);%0A            BufferedReader buf = new BufferedReader(fileReader);%0A            String lineJustFetched = null;%0A%0A            while (true) %7B%0A                lineJustFetched = buf.readLine();%0A                if (lineJustFetched == null) %7B%0A                    // end of file%0A                    break;%0A                %7D else %7B%0A                    // '-1' prevents empty entries from being trimmed%0A                    array = lineJustFetched.split(%22%5Ct%22, -1);%0A                    arrayList.add(array);%0A                %7D%0A            %7D%0A            buf.close();%0A        %7D catch (FileNotFoundException e) %7B%0A            System.err.println(%22Unable to find file %22 + file.getAbsolutePath());%0A            e.printStackTrace();%0A        %7D catch (IOException e) %7B%0A            System.err.println(%22Error while reading file %22 + file.getAbsolutePath());%0A            e.printStackTrace();%0A        %7D%0A%0A        return arrayList;%0A    %7D%0A%0A    // Saves arrayList of arrays to a tab separated file%0A    public static boolean saveToFile(String filePath, ArrayList%3CString%5B%5D%3E arrayList) %7B%0A%0A        File file = new File(filePath);%0A        try %7B%0A            FileWriter writer = new FileWriter(file);%0A            for (String%5B%5D s : arrayList) %7B%0A                String formattedString = Arrays.toString(s)%0A                        .replace(%22, %22, %22%5Ct%22)   // replace commas with tab separators%0A                        .replace(%22%5B%22, %22%22)      // remove right bracket%0A                        .replace(%22%5D%22, %22%22);     // remove left bracket%0A                writer.write(formattedString + %22%5Cr%5Cn%22);%0A            %7D%0A            writer.close();%0A        %7D catch (IOException e) %7B%0A            System.err.println(%22Error writing to file %22 + file.getAbsolutePath());%0A            e.printStackTrace();%0A            return false;%0A        %7D%0A%0A        return true;%0A    %7D%0A%7D%0A

Create `TabSeparatedFileReader` to read in .txt files (#51)