< Rebol Programming

USAGE:

SAVE where value /header header-data /bmp /png /all 

DESCRIPTION:

Saves a value or a block to a file or url.

SAVE is a native value.

ARGUMENTS

  • where -- Where to save it. (Type: file url binary)
  • value -- Value to save. (Type: any)

REFINEMENTS

  • /header -- Save it with a header
    • header-data -- Header block or object (Type: block object)
  • /bmp -- Save in .BMP format
  • /png -- Save in .PNG format
  • /all -- Save in serialized format

SOURCE CODE

save: native[
    "Saves a value or a block to a file or url." 
    where [file! url! binary!] "Where to save it." 
    value "Value to save." 
    /header "Save it with a header" 
    header-data [block! object!] "Header block or object" 
    /bmp "Save in .BMP format" 
    /png "Save in .PNG format" 
    /all "Save in serialized format"
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.