我需要帮助才能从文本文件中删除换行符。
示例数据:
mango apple grapes peanut
mango apple grapes peanut
mango apple grapes peanut
mango apple grapes peanut
期望的输出:
mango apple grapes peanut mango apple grapes peanut mango apple grapes peanut mango apple grapes peanut
只有在一行上才会有效。
答案 0 :(得分:5)
@Echo OFF
:: By Elektro H@cker
FOR /F "Usebackq Tokens=*" %%@ IN ("File.txt") DO (
<NUL Set /P "=%%@"
)
Pause&Exit