Writing task into the file

At this moment, the system writes the task into the file if and only if
does not exist. Otherwise, it does not do anything.