WLJS LogoWLJS Notebook

OpenRead

OpenRead["file"] opens a file for reading and returns an InputStream object.

Examples

Open a file for reading:

stream = OpenRead["data.txt"]
(* InputStream[...] *)

Read and close:

stream = OpenRead["data.txt"];
data = ReadList[stream];
Close[stream];

Please visit the official Wolfram Language Reference for more details.

On this page