Append to file only if it exists

后端 未结 4 1216
故里飘歌
故里飘歌 2021-01-18 19:05

I\'ve seen several answers on SO about how to append to a file if it exists and create a new file if it doesn\'t (echo \"hello\" >> file.txt) or overwrite

4条回答
提交回复
热议问题