Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Systems Interfaces & Deployment > File Operations > Low-Level File Operations > WordSeparators >

WordSeparators

WordSeparators
is an option for Read, Find, and related functions that specifies the list of strings to be taken as delimiters for words.
  • Strings used as word separators may contain several characters.
  • With the option setting NullWords->False, any number of word separators may appear between any two successive words.
  • WordSeparators specifies different left and right separators for words. Words must have a left separator at the beginning, a right separator at the end, and cannot contain any separators.
  • Strings given as record separators are automatically taken as word separators.
Read the text in a file as a sequence of words:
Read the text in a file as a sequence of words:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF