void getItemFile(String il)
	{
		try
		{
			// Open a file stream
			InputStream in = LibraryCollection.class.getResourceAsStream(il);
			InputStreamReader reader = new InputStreamReader(in);
			BufferedReader buffer = new BufferedReader(reader);
		
			try
			{
				String input = buffer.readLine();
				while (input != null)
				{
					String[] fields = input.split(",");
					String type = fields[0];
					
					if (type.equals("BOOK"))
					{
						String code = fields[1];
						String title = fields[2];
						String desc = fields[3];
						String author = fields[4];
						String medium = fields[5];
						int quantity = Integer.parseInt(fields[6]);
						
						// Create object and populate with data
						Book book = new Book(code,title,desc,author,medium);
						book.quantity = quantity;
						
						// Add object to collection
						lc.collection.put(book.ID, book);
					}
					else
					if(type.equals("MUSIC"))
					{
						String code = fields[1];
						String title = fields[2];
						String artist = fields[3];
						String desc = fields[4];
						String format = fields[5];
						String medium = fields[6];
						int quantity = Integer.parseInt(fields[7]);
						
						Music music = new Music(code,title,medium,artist,desc,format);
						music.quantity = quantity;
						lc.collection.put(music.ID, music);
					}
				
					// Read another record from the file
					input = buffer.readLine();
				}
			}
			catch (IOException e)
			{
				e.printStackTrace();
			}
		}
		catch(NullPointerException e)
		{
			viewArea.append("You have started the program without a specified item list file.\nPlease add one to the program folder and try again.\n\n");
		}
			
	}