char szV[]="205";char* stop;FILE fpif((fp = fopen("fille name","wb")) != NULL){ unsigned long v = strtod(szV,&stop); fwrite(&v,sizeof(unsigned long),1,fp); fclose(fp);}