add trailing line to the file