write std file