Mathematica 9 is now available

Find

Usage

Find[stream, "text"] finds the first line in an input stream that contains the specified string.
Find[stream, {" ", " ", ... }] finds the first line that contains any of the specified strings.


Notes

Find breaks the input stream into records, delimited by record separators, and scans each record for the strings you specify.
Find returns as a string the first record which contains the specified text.
• If Find does not find any record which contains the specified text before it reaches the end of the file, it returns EndOfFile.
• The following options can be given:
AnchoredSearch False whether to require that the text searched for be at the beginning of a record
IgnoreCase False whether to treat lower and upper case as equivalent
RecordSeparators {"\n"} separators for records
WordSearch False whether to require that the text searched for appear as a word
WordSeparators {" ", "\t"} separators for words
• The first argument to Find can be InputStream["name", n], or simply "name" if there is only one open input stream with the specified name.
• You can open a file or pipe to get an InputStream object using OpenRead.
Find does not close streams after it finishes reading from them.
• New in Version 2.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.