Why does ECHO command print some extra trailing space into the file?

前端 未结 3 1418
一个人的身影
一个人的身影 2020-11-27 23:03

I am reading multiple lines from a data file and append it to another file. The issue is that some extra space is in output file at end of appended lines. It is mandatory to

3条回答
  •  心在旅途
    2020-11-27 23:47

    You have a terminal space on the line echo %%c>>temp_data.txt (amongst others) which should be deleted. This is typical of the confusion that terminal spaces causes.

提交回复
热议问题