How to read file content line per line

谁都会走 提交于 2020-01-06 15:08:19

问题


How I can read line per line the content of a text file?

I've tried

Type "Text.txt"

I will read the complete output


回答1:


@Echo OFF

FOR /F "Usebackq Delims=" %%a IN (
    "File.txt"
) DO (
    Echo %%a
)

Pause&Exit


来源:https://stackoverflow.com/questions/19231548/how-to-read-file-content-line-per-line

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!