replaced myfgets and included mylib.h