Writes binary (unformatted) data from an expression into a file.
expri Expressions to be output. For nonstring variables, the number of bytes contained in expr is output. For string variables, the number of bytes contained in the existing string is output.
d = BYTSCL(REFORM(FIX(100 * RANDOM(40000)), 200, 200))
Create some data. Argument
d
contains a 200-by-200
byte array.
OPENW, unit, 'wuex.dat', /Get_Lun
Open the file
wuex.dat
for writing.
WRITEU, unit, d
Write the data in
d
to the wuex.dat file.
FREE_LUN, unit
For more information and examples, see Chapter 8, Working with Data Files, in thePV-WAVE Programmer's Guide.