Midi_stream::Midi_stream (String filename)
{
filename_string_ = filename;
- os_ = open_file_stream (filename, std::ios::out|std::ios::binary);
+ out_file_ = fopen (filename.to_str0(), "wb");
}
Midi_stream::~Midi_stream ()
{
- close_file_stream (os_);
+ fclose (out_file_);
}
Midi_stream&
{
Byte * b = str.get_bytes ();
for (int sz = str.length (); sz--;)
- *os_ << *b ++;
+ {
+ fputc (*b, out_file_);
+ b++;
+ }
return *this;
}
{
Byte * b = str.get_bytes ();
for (int sz = str.length (); sz--;)
- *os_ << *b++;
+ {
+ fputc (*b, out_file_);
+ b++;
+ }
}
return *this;