I have to use the following API
extern OSErr FSpCreate(
const FSSpec * spec,
OSType creator,
OSType fileType,
ScriptCode scriptTag )
I have declared the following
FSSpec *spec;
spec->vRefNum=0;
spec->parID=2;
unsigned char filename[64]="Aman";
spec->name=filename;
OSType...