FUNCTION REFERENCE

textread

Read formatted file text into separate output columns.

Read formatted file text into separate output columns.

Syntax

[a, b, ...] = textread(filename [, format, option, value, ...])

Example

try, textread('no_such_file_zz.txt','%d'); catch e, e.message, end   % File not found.

Differences from MATLAB: Uses the bounded textscan parser and its supported options.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.