the first letter was an error as the officer probably did not find your file at this time so he wrote that letter after few days due to a delay in the post your complete file was received so
the officer has corrected his error by sending the new file number
good luck
read this link will explain everything
http://www.cic.gc.ca/english/resources/manuals/bulletins/2009/ob120.asp