use fromfile for bin file