Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

OpenRead

Usage

OpenRead["file"] opens a file to read data from, and returns an InputStream object.


Notes

OpenRead prepares to read from a file, starting at the beginning of the file.
• On systems that support pipes, OpenRead["!command"] runs the external program specified by command, and opens a pipe to get input from it.
• If OpenRead does not succeed in opening a particular file or pipe, it generates a message, and returns $Failed.
OpenRead resolves file names according to the procedure described in Section A.6.1.
• The function ReadList automatically opens files or pipes that it needs.
OpenRead returns InputStream["name", n], where name is the full name of a file or command, and n is a serial number that is unique across all streams opened in the current Mathematica session.
• With the option BinaryFormat->True the stream is opened in binary format, so that no textual interpretation of newlines or other data is done.
• See also: Close, Read, ReadList, Streams, LinkCreate.
• New in Version 1.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: