Fixed parameters to fwrite in extractFile()