public void writeRefereesOutFile()
	{
		// create file writer object
		FileWriter refereesOutWriter = null;

		try
		{
			try
			{
				// instantiate file writer object
				refereesOutWriter = new FileWriter(refereesOutFile);

				// array length for use as iterator limit
				int arrayLength = refereeProgram.getrefereeClassArray().length;
				// loop over fitnessProgramObject
				for (int x = 0; x < arrayLength; x++)
				{
					RefereeClass refereeClassAtX = refereeProgram.getRefereeClassAtX(x);

					// if fitness class at x is not null
					if (refereeClassAtX != null)
					{
						refereesOutWriter.write(String.format("%s %s %s %d %s %s%n",
								refereeClassAtX.getRefereeID(), refereeClassAtX.getRefereeName(),
								refereeClassAtX.getQualification(), refereeClassAtX.getAllocatedMatches(),
								refereeClassAtX.getHomeLocality(), refereeClassAtX.getVisitingLocalities()));
					}
				}
			}
			finally
			{
				// close file writer
				if (refereesOutWriter != null) refereesOutWriter.close();
			}
		}
		catch (IOException iox)
		{
			JOptionPane.showMessageDialog(null, "File could not be created", 
					"Error", JOptionPane.ERROR_MESSAGE);
		}
	}