public static void createDotFile(List<Tasks> taskListToPrint,File inputFile) {
		System.out.println(inputFile.getAbsolutePath());
		int noPreceedingTaskCounter = 0; 
		try {

			File file = new File(inputFile.getAbsolutePath());
 
			// if file doesnt exists, then create it
			if (!file.exists()) {
				file.createNewFile();
			}
 
			FileWriter fw = new FileWriter(file.getAbsoluteFile());
			BufferedWriter bw = new BufferedWriter(fw);
			bw.write("digraph G {\n");
			for (int i = 0; i < taskListToPrint.size(); i++) {
				if (taskListToPrint.get(i).getPreceedingTasks().isEmpty()){
					noPreceedingTaskCounter ++;
					if (noPreceedingTaskCounter>1){
							throw new IllegalArgumentException("Incorrect pert file format!");
						}
					}
					for (int j = 0; j < taskListToPrint.get(i).getPreceedingTasks().size(); j++){
							bw.write(
								taskListToPrint.get(i).getPreceedingTasks().get(j)+"[shape=box];\n"+
								taskListToPrint.get(i).getPreceedingTasks().get(j)+
								"->" + taskListToPrint.get(i).getTaskName()+";\n"+
								taskListToPrint.get(i).getTaskName() + "[label=\"" + taskListToPrint.get(i).getTaskName() + " (" + taskListToPrint.get(i).getTaskDuration() +" days)\"];\n"
						);
				    }
			}
			//bw.write(taskListToPrint.get(taskListToPrint.size()-1).getTaskName()+"[shape=box];\n");
			//bw.write(taskListToPrint.get(taskListToPrint.size()-1).getTaskName()+"[label=\""+taskListToPrint.get(taskListToPrint.size()-1).getTaskName()+"\"];\n");
			bw.write("}");
			bw.close();
			System.out.println("Done");
 
		} catch (IOException e) {
			e.printStackTrace();
		}
	}