RecordSeparators

RecordSeparators

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

Details

  • The default setting is RecordSeparators{"n", "\r\n","\r" }. With this setting, each complete line of input on any computer system is considered as a record.
  • Strings used as record separators may contain several characters.
  • With the option setting NullRecordsFalse, any number of record separators may appear between any two successive records.
  • RecordSeparators->{} specifies that everything is to be included in a single record.
  • RecordSeparators{} or RecordSeparatorsNone specifies that everything is to be included in a single record.
  • RecordSeparators{{lsep1,},{rsep1,}} 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.
  • Text that does not appear between left and right separators is discarded.

Examples

open allclose all

Basic Examples  (2)

Use "." as a record separator:

Use "<" as a left separator, and ">" as a right separator:

Scope  (1)

Setting RecordSeparatorsNone is equivalent to reading the entire stream:

Wolfram Research (1991), RecordSeparators, Wolfram Language function, https://reference.wolfram.com/language/ref/RecordSeparators.html (updated 2017).

Text

Wolfram Research (1991), RecordSeparators, Wolfram Language function, https://reference.wolfram.com/language/ref/RecordSeparators.html (updated 2017).

CMS

Wolfram Language. 1991. "RecordSeparators." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/RecordSeparators.html.

APA

Wolfram Language. (1991). RecordSeparators. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RecordSeparators.html

BibTeX

@misc{reference.wolfram_2024_recordseparators, author="Wolfram Research", title="{RecordSeparators}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/RecordSeparators.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_recordseparators, organization={Wolfram Research}, title={RecordSeparators}, year={2017}, url={https://reference.wolfram.com/language/ref/RecordSeparators.html}, note=[Accessed: 22-December-2024 ]}