Object-RawFile

From Spheriki

Jump to: navigation, search

The RawFile object allows you to work directly with files, either in their format, or in creating your own.


Contents

Initializers


Methods


Members

None.


Examples

var raw_file = OpenRawFile("../strings.txt"); //opens the raw file handle
var byte_array = raw_file.read(rawfile.getSize()); //reads the raw file into a byte array
rawfile.close(); //closes the file handle
var strings = CreateStringFromByteArray(byte_array); //fairly self explanatory

Notes

  • Using RawFiles, it is possible to work with any kind of file, even if it isn't in a format that Sphere uses for its own files.


See also

Personal tools