private static void writeTableAssignmentByTable(String fileName) {
		EasyWriter tableByTable = new EasyWriter(fileName + "_byTable.txt"); // "table_assignment_by_table.txt");
		if (tableByTable.bad()) {
			System.err.println("Error creating " + fileName + "_byTable.txt\n");
		}

		for (int i = 0; i < DiningRoom.size(); i++) {
			Table thisTable = new Table((Table) DiningRoom.get(i));

			// if ( i > 6 )
			// tableByTable.print("[" + (i+3) + "] " );
			// else
			tableByTable.print("[" + (i + 1) + "] ");

			tableByTable.print(((Table) DiningRoom.get(i)).getTableName()
					+ "\n");
			tableByTable.print("------------------------------\n");
			tableByTable.print("\n");

			for (int j = 0; j < ((Table) DiningRoom.get(i)).getIDList().size(); j++) {
				Student thisKid = (Student) Students
						.get(getIndexOfStu((String) thisTable.getIDList()
								.get(j)));
				tableByTable.print(thisKid.getfName() + " "
						+ thisKid.getlName() + "\n");
			}
			tableByTable.print("\n\n\n\n");
		}
		tableByTable.close();
	}