Writing result in file and updating gitignore file