Update write.h

Added basic script to write into a file