file_get_contents vs fread

I am creating attachment extractor, my script connects to mail server, searches the email with attachments, and put the attachment as files. I am using fwrite and it works fine now, but was wondering if file_put_contents isn’t better than fwrite for such purpose if attachment is larger?