add end string at the end of file1