在命令行窗口中输入:
for /f %i in (f:mydata.txt) do echo %i
如果要是写成批处理文件run.bat
for /f %%i in (f:mydata.txt) do echo %%i
pause