I want to write file total contenet. I write the file not total content of the file write only last line write. how to write total content of file write?