Core Function BinarySave
From Sputnik Wiki
BinarySave( <binary-array>, <file> )
Contents |
Description
Save a binary variable data to file.
Parameters
<binary-array>
The binary variable you want saving to file.
file
Name of file to save (Will create if it doesnt exist).
Return Value
Success: Returns 1.
Failure: Returns 0.
Remarks
This will even accurately save exe files without damage so they can run.
Example
$binary = BinaryLoad("Sputnik.exe") println("Size is : " . BinaryLen($binary) ) BinarySave($binary, "SputnikTest.exe")