To read lines from a file, in a batch file, you do :
for /f %%a in (myfile.txt) do ( :: do stuff... )
Now suppose you file is in
Found it.
for /f %%a in ('type "C:\Program Files\myfolder\myfile.txt"') do ( echo Deleting: %%a )
Don't even ask me why that works.