Difference between revisions of "Writebinary"
From Mesham
Jump to navigationJump to search (Created page with '== 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 v…') |
m (3 revisions imported) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 9: | Line 9: | ||
#include <io> | #include <io> | ||
| − | var f:=open("hello.txt","w"); | + | |
| − | + | function void main() { | |
| − | + | var f:=open("hello.txt","w"); | |
| + | writebinary(f,127); | ||
| + | close(f); | ||
| + | }; | ||
| + | |||
| + | ''Since: Version 1.0'' | ||
[[Category:Function Library]] | [[Category:Function Library]] | ||
[[Category:IO Functions]] | [[Category:IO Functions]] | ||
Latest revision as of 15:44, 15 April 2019
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