Writes the next item depending on dataType
Usage:
ioWriteEx (object me, any stream, integer datatype )
Parameters:
stream (integer or float) - the value to write to the file
dataType (integer) - The possible types are:
-1: writes 1 byte as a signed char
1: writes 1 byte as a unsigned char
-2: writes 2 bytes as a signed short
2: writes 2 bytes an unsigned short
-4: writes 4 bytes as a signed long
4: writes 4 bytes as an unsigned long
6: writes 4 bytes as a float
8: writes 8 bytes as a double
Returns:
(integer) - The success code
Example:
xtRose = xtra("Rosetta").new( )
xtRose.ioOpen( "C:\mySavedData.dat", 4 )
xtRose.ioWriteEx( 80, -1 )
Notes: