-/*
- 4D 54 68 64 MThd
- String str = "MThd";
- 00 00 00 06 chunk length
- 00 01 format 1
- 00 01 one track
- 00 60 96 per quarter-note
-*/
- *this << Midi_header( 1, tracks_i_, clocks_per_4_i_ );
+ size_t sz = sizeof (Byte);
+ size_t n = str.length ();
+ size_t written = fwrite (str.data (), sz, n, out_file_);
+
+ if (written != sz * n)
+ warning (_ ("cannot write to file: `%s'"));