it should display an error message now if open/write fails, path[0] needed to be initialized to 0 for strcat to work properly. now it gets device or resource busy