write line to files