File messageNum operational

still need to implement Group messageNum.