Such assignment shall be in writing, and shall be executed and acknowledged in the manner in which a conveyance of real property is required to be executed and acknowledged in order to entitle the same to be recorded. Within twenty-four hours after its execution it shall be filed for record in the clerk's office. If it conveys real property it shall be recorded in the office of the recorder of deeds.