@Deprecated
	public ArrayList<Item> getItems() {
		if (scanner.findInLine(firstLine) != null) {
			scanner.nextLine();
		}
		list = new ArrayList<Item>();
		while (scanner.hasNextLine()) {
			if (scanner.findInLine(regularExp) != null) {
				MatchResult result = scanner.match();
				String type = result.group(1);
				String title = result.group(2);
				String author = result.group(3);
				String genre = result.group(4);
				double length = Double.parseDouble(result.group(5));
				int rating = Integer.parseInt(result.group(6));
				
				System.out.printf("Title: %s, Author: %s, Genre: %s",title, author ,genre);
				System.out.println("");
				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();
					}	
			}
			if (scanner.hasNextLine())
				scanner.nextLine();
		}
		scanner.close();
		return list;
	}