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 / Data Reading Options /


FilledSmallSquare RecordSeparators is an option for Read, Find and related functions which specifies the list of strings to be taken as delimiters for records.

FilledSmallSquare The default setting is RecordSeparators -> {"\n"}. With this setting, each complete line of input is considered as a record.

FilledSmallSquare Strings used as record separators may contain several characters.

FilledSmallSquare With the option setting NullRecords -> False, any number of record separators may appear between any two successive records.

FilledSmallSquare RecordSeparators -> { } specifies that everything is to be included in a single record.

FilledSmallSquare RecordSeparators -> , ... , , ... specifies different left and right separators for records. When there are nested left and right separators, records are taken to be delimited by the innermost balanced pairs of separators.

FilledSmallSquare Example: with RecordSeparators -> {{"<"}, {">"}}, the records aaa and bbb are extracted from <x<aaa>yyy<<bbb>>>.

FilledSmallSquare Text that does not appear between left and right separators is discarded.

FilledSmallSquare See Section 2.12.8.

FilledSmallSquare See also: WordSeparators.

FilledSmallSquare New in Version 2.