file read
Moderator: DosItHelp
-
- Posts: 4
- Joined: 17 Sep 2009 09:05
file read
hi i need to read a text file line by line and check each time if that line matches a variable.
-
- Posts: 40
- Joined: 25 Jan 2008 14:05
Code: Select all
for /f %%A IN (file.txt) DO (
IF "%%A"=="value" ECHO MATCH
)
-
- Posts: 319
- Joined: 12 May 2006 01:13
Re: file read
alcool9999 wrote:hi i need to read a text file line by line and check each time if that line matches a variable.
use findstr