public void loadData(){
		try {
			Files.lines(path).forEachOrdered(new Consumer<String>() {
				boolean headerDone = false;
				@Override
				public void accept(String t) {
					if(!headerDone && t.startsWith("----")){
						headerDone = true;
					} else if(t.startsWith("date: ")){
						try {
							date = dateSaveFormat.parse(t.substring("date: ".length()));
						} catch (ParseException e) {
							date = new Date();
							e.printStackTrace();
						}
					} else if(t.startsWith("title: ")){
						title = t.substring("title: ".length());
					} else if(t.startsWith("author: ")){
						author = t.substring("author: ".length());
					} else if(t.startsWith("tags: ")){
						tags = t.substring("tags: ".length());
					} else if(headerDone){
						data.append(t+"\n");
					}
				}
			});
		} catch (IOException e) {
			e.printStackTrace();
		}
	}