Simple task manager with file i/o written in C