script txt to osis format - file output