Previous - ioSize Section Home - File I/O Stream Next - ioReadEx


ioRead ( )

Reads a chunk of data back into director as a string.

Usage:

ioRead (object me, integer size )

Parameters:

size (integer) - the number of bytes to read.

Returns:

(string) - binary string

Example:

xtRose = xtra("Rosetta").new( )
xtRose.ioOpen( "C:\mySavedData.dat", 1 )
nSize = xtRose.ioSize( )
strFile = xtRose.ioRead( nSize )

Notes:

After reading, the position is incremented to the size actually read


Previous - ioSize Section Home - File I/O Stream Next - ioReadEx