msg("create file \"%s\" (%d bytes)", filename, len);
FILE*fo = fopen(filename, "wb");
if(!fo) {
char buf[1024];
sprintf(buf, "Couldn't create file %s", filename);
msg("create file \"%s\" (%d bytes)", filename, len);
FILE*fo = fopen(filename, "wb");
if(!fo) {
char buf[1024];
sprintf(buf, "Couldn't create file %s", filename);