Each and every person who may hereafter be elected or appointed to office in this state, required by law to give bond, shall file the same for record before entering upon the discharge of the duties of the office.