file read
Posted: 18 Sep 2009 02:39
hi i need to read a text file line by line and check each time if that line matches a variable.
Code: Select all
for /f %%A IN (file.txt) DO (
IF "%%A"=="value" ECHO MATCH
)
alcool9999 wrote:hi i need to read a text file line by line and check each time if that line matches a variable.