public void readLocations(String fileName) 
	{
		try { 
			this.fileName = fileName;
			if (!new File(fileName).exists())
			{	 
				new File(fileName).createNewFile();			   	
				return;
			}	
			else {			    
				ObjectInputStream input = new ObjectInputStream(new FileInputStream(fileName));
				while (true)
					try {	
						String name = input.readUTF();
						Object object1 = input.readObject();
						allObjects.put(name, object1);
						if (object1 instanceof BusStop) {
							points.put(name, (BusStop)object1);
							busStopList.addItem(name);
							busStopListDep.addItem(name);
							busStopListDest.addItem(name);
						}
						else if (object1 instanceof Line) {
							lines.put(name, (Line)object1);
							lineList.addItem(name);
						}
						else {
							pointsOfInterest.put(name, (PointOfInterest)object1);
							pointOfInterestList.addItem(name);
						}
					}     
				catch(EOFException e) 
				{
					System.out.println("EOF reached!");
					input.close();
					break;
				}	
			}
		}
		catch(IOException e) {
			e.printStackTrace(); 
			System.out.println("Problem reading Locations and  Lines");
		}
		catch(ClassNotFoundException e) { 
			System.out.println("Class couldn't be loaded when reading Location and Line objects");
		}
	}