1.66667

1.7 | 3 ratings Rate this file 35 Downloads (last 30 days) File Size: 1.59 KB File ID: #8159

FIND STRING IN A TEXT FILE

by Divakar Roy

 

30 Jul 2005 (Updated 31 Jan 2006)

Searches for a string in a text file

| Watch this File

File Information
Description

The program can be used to search a word or string in a text file.

The output gives you the information at what line number it exists and how many such words or strings are present in that line.

Key Features: Simple to use.
Quick result.
Options for both case sensitive and case insensitive situations as you wish.

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
01 Aug 2005 urs (us) schwarz

1) this script snippet is screaming for various improvements (too many to mention here)...
2) even worse, it never <fclose>s the file id <fid>...

08 Oct 2005 l ak

too much clumsy..

needs more improvement

18 Nov 2007 ihsan engin

thanks!

10 Dec 2010 Marc

Terrible!!! "converting to function format' was wrapping the script with function.

Please login to add a comment or rating.
Updates
31 Aug 2005

converted to function format

31 Jan 2006

bugs fixed

Tag Activity for this File
Tag Applied By Date/Time
strings Divakar Roy 22 Oct 2008 07:54:35
find Divakar Roy 22 Oct 2008 07:54:35
string Divakar Roy 22 Oct 2008 07:54:35
word Divakar Roy 22 Oct 2008 07:54:35
text Divakar Roy 22 Oct 2008 07:54:35
file Divakar Roy 22 Oct 2008 07:54:35
search Divakar Roy 22 Oct 2008 07:54:35
file Morad Kassem 17 Feb 2009 09:51:01
text Gregoire 19 Mar 2009 07:00:35
file Chris Chris 19 Nov 2009 05:09:53
file Peter 23 Feb 2010 14:40:01
search Ankit Panchbhai 18 Mar 2010 04:55:07
file Thomas Harpsøe 04 Jun 2010 07:27:13
file Katja 20 Jun 2011 06:32:45
strings Lam 25 Sep 2011 04:27:41

Contact us at files@mathworks.com