-//
-// ----------- Writes the common part
-//
- fwrite ( &group,(size_t)2 ,(size_t)1 ,fp); //group
- fwrite ( &el, (size_t)2 ,(size_t)1 ,fp); //element
-
- if ( filetype == gdcmExplicitVR )
+ //
+ // ----------- Writes the common part
+ //
+ binary_write( *fp, group); //group
+ binary_write( *fp, el); //element
+
+ if ( filetype == ExplicitVR )