A newer version of Max is available. Click here to access the latest version of the documentation

jit.fprint Reference

Read/write a matrix as a text file



Imports or exports a single matrix from or to a text file.


Matrix Operator

matrix inputs:1, matrix outputs:1
Name IOProc Planelink Typelink Dimlink Plane Dim Type
out n/a 1 1 1 1 1 char long float32 float64

More about Matrix Operators

The Jitter MOP

MOP Arguments

MOP Attributes

MOP Messages


default_dir [symbol]

Equivalent to defaultdir.

defaultdir [symbol]

The default directory for writing files (default = default path)

coldelim [symbol]

The column delimiter (default = tab)

planedelim [symbol]

The matrix plane delimiter (default = space)

precision [int]

The number of characters of floating-point precision (default = 6)

rowdelim [symbol]

The row delimiter (default = carriage return)

writemode [int]

Data write mode (default = 0 (integer))
0 = integers used when writing matrix values
1 = floats used when writing matrix values

Possible values:

0 = 'Integer'
1 = 'Floating-Point'

Common Box Attributes




filename [symbol]
Open and read a single matrix from a text file. The optional argument specifies the filename. The jit.fprint object expects text files to be formatted in the same fashion in which it writes them. Attempting to read unformatted text files will likely return an error.



filename [symbol]
Create a new text file for writing. The optional argument specifies a filename. The text file is not written until a matrix is received by the jit.fprint object. After a write attempt, the message write followed by two int arguments will be sent from the object's right outlet. The first int indicates the success (1) or failure (0) of the write operation, and the second int indicates the number of bytes written to the file (if any).

See Also

Name Description