Core Function BinaryLoad
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> BinaryLoad( <file> ) </pre> === Description === Create a new binary variable by loading binary data from a file. === Parameters === ==== file ==== Name of file to load...")
Newer edit →
(Created page with "<pre> BinaryLoad( <file> ) </pre> === Description === Create a new binary variable by loading binary data from a file. === Parameters === ==== file ==== Name of file to load...")
Newer edit →
Revision as of 09:45, 12 November 2011
BinaryLoad( <file> )
Contents |
Description
Create a new binary variable by loading binary data from a file.
Parameters
file
Name of file to load.
Return Value
Success: Returns the new binary variable.
Failure: Returns 0.
Remarks
This will even accurately load exe files so they can be saved again without damage.
Example
$binary = BinaryLoad("Sputnik.exe") println("Size is : " . BinaryLen($binary) ) BinarySave($binary, "SputnikTest.exe")