Writebinary

From Mesham
Revision as of 15:44, 15 April 2019 by Polas (talk | contribs) (3 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Overview

This writebinary(f,a) function will write the value of a to the file denoted by handle f.

  • Pass: The File handle to write to and the Int variable or value to write into the file in a binary manner
  • Returns: Nothing

Example

#include <io>

function void main() {
   var f:=open("hello.txt","w");
   writebinary(f,127);
   close(f); 
};

Since: Version 1.0