public void createSimulationFile(int gpioNum, String path) {

        if (gpioNum <= maxGpioPins) {

            for (int i = 0; i <= maxGpioPins - 1; i++) {

                //Create the Gpio "Pins" (the Pins are only dirs like under linux)
                File gpioPin = new File(path + "/gpio" + i);
                if (!gpioPin.exists()) {
                    boolean result = gpioPin.mkdir();
                    if (result) {
                        System.out.println("GPIOpin " + i + " created! in : " + path);
                    }

                    //Create the Files for the Pin Values/Direction
                    File directionFile = new File(path + "/gpio" + i + "/Direction");
                    File valueFile = new File(path + "/gpio" + i + "/Value");

                    try {
                        //Direction File
                        FileWriter dwriter = new FileWriter(directionFile);

                        dwriter.write("in");
                        dwriter.flush();
                        dwriter.close();

                        //Value File
                        FileWriter vwriter = new FileWriter(valueFile);

                        vwriter.write("0");
                        vwriter.flush();
                        vwriter.close();


                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }
            }
        }
        else {
            System.out.println("There are only 17 GPIO pins");
        }
    }