Pass Value by a CONST ref when write it to a file