REBOL Programming/save

USAGE:Edit

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

DESCRIPTION:Edit

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

SAVE is a native value.

ARGUMENTSEdit

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

REFINEMENTSEdit

  • /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 CODEEdit

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"
]
Last modified on 13 November 2012, at 10:50