677c677,681
< text.open(*simout.find(filename));
---
> ostream *os = simout.find(filename);
> if (!os)
> os = simout.create(filename);
>
> text.open(*os);