create memory space for recording filename and length of filename