This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Input and Output / File Input /


FilledSmallSquare FindList["file", "text"] gives a list of lines in the file that contain the specified string.

FilledSmallSquare FindList["file", "", "", ... ] gives a list of all lines that contain any of the specified strings.

FilledSmallSquare FindList["", ... , ... ] gives a list of lines containing the specified strings in any of the .

FilledSmallSquare FindList[files, text, n] includes only the first n lines found.

FilledSmallSquare FindList returns {} if it fails to find any record which contains the specified text.

FilledSmallSquare If FindList opens a file or pipe, it closes it again when it has finished.

FilledSmallSquare See notes for Find.

FilledSmallSquare See Section 1.11.2 and Section 2.12.9.

FilledSmallSquare See also: ReadList.

FilledSmallSquare New in Version 2.