editor: use fstream in module st