public void setType(int n) {
		InputStreamReader isReader= new InputStreamReader(MyMenu.class.getClassLoader().getResourceAsStream(pathAttr));
		try (BufferedReader reader = new BufferedReader(isReader)) {
		    String line = reader.readLine();	// read the first line containning the description of the column
		    while ((line = reader.readLine()) != null) {	// Reading the file line by line
				String[] split = line.split(";");
				int ID = Integer.parseInt(split[0]);
				if (n==ID){		// If we are on the line where the Menu is defined
					int size = Integer.parseInt(split[1]);
					int i = 0;
					for (; i<size;++i){
						String[] split2 = split[i+numConfColumn].split(",");
						if (split2.length>1) {
							MyMenu submenu = new MyMenu(split2[1]);
							submenu.setType(Integer.parseInt(split2[0]));
							menu.add(submenu);	// submenu
						} else {
							menu.add(new MyMenuItem(Integer.parseInt(split[i+numConfColumn])));	// items
						}
					}
				}
		    }
		} catch (IOException x) {
		    System.err.format("IOException: %s%n", x);
		}
	}