public static Data getDataFromFile(File input) throws FileNotFoundException {
		Data data = new Data();
		Scanner s = new Scanner(input);

		String row = null;
		String relation = null;
		while (s.hasNext() && (relation = getRelation(row)) == null) {
			row = s.nextLine();
		}
		data.setRelation(relation);

		while (s.hasNext() && !isData(row)) {
			row = s.nextLine();
			setAtribute(row, data);
		}

		while (s.hasNext()) {
			row = s.nextLine();
			setData(row, data);
		}
		s.close();
		return data;
	}