public ArrayList<Item> getItemList() {
		if (scanner.findInLine(firstLine) != null)		{
			scanner.nextLine();
		}
		list = new ArrayList<Item>();
		while (scanner.hasNextLine()) {
			String[] line  = scanner.nextLine().split("; ");
			
			if (line.length == 6) {
				String type = line[0];
				String title = line[1];
				String author = line[2];
				String genre = line[3];
				double length = Double.parseDouble(line[4].replace(',','.').replace(";",""));
				int rating = Integer.parseInt(line[5].replace(";", ""));
				try {	
					switch (type) {		
					case "MUSIC" : 
						list.add(new Music(title, author, length,
						genre, rating, ItemType.MUSIC));
						break;
					case "BOOK" : 
						list.add(new Book(title, author, length,
						genre, rating, ItemType.BOOK));
						break;
					default : 
						System.err.println("Wrong type!");
						break;
					}
				} catch (IllegalItemException e) {
					e.printStackTrace();
				}	
			}
		}
		return list;
	}