Computing.Net > Forums > Programming > Search for a line in a text file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Search for a line in a text file

Reply to Message Icon

Name: Priyanka.madhu
Date: June 4, 2009 at 04:56:22 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

Hi,

I need make a batch file that would search for the line "(0 rows affected)" from a text file, if this line is found it should exit the script, else it should carry on with the rest of the script.
My text file has lots of white spaces and other junk values, mainly seperators like ----------. Am new at this kinda coding, any help is really appreciated.
Regards,
Priyanka



Sponsored Link
Ads by Google

Response Number 1
Name: mbshinde78
Date: June 4, 2009 at 06:33:03 Pacific
Reply:

Check out following post Priyanka. It might help. Its not what you want exactly but on the same line.

http://www.computing.net/answers/pr...

Manoj Shinde
Useful Softwares


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Search for a line in a text file

deleting multiple lines in multiple text file www.computing.net/answers/programming/deleting-multiple-lines-in-multiple-text-file/19862.html

swap lines of text in a text file www.computing.net/answers/programming/swap-lines-of-text-in-a-text-file/17907.html

Extracting a set of lines from a text file www.computing.net/answers/programming/extracting-a-set-of-lines-from-a-text-file/19033.html