Creates CCD from fwrite.