read task info from file