Difference between revisions of "Writestring"
From Mesham
Jump to navigationJump to searchm |
|||
Line 9: | Line 9: | ||
#include <io> | #include <io> | ||
− | var f:=open("hello.txt","w"); | + | |
− | + | function void main() { | |
− | + | var f:=open("hello.txt","w"); | |
+ | writestring(f,"hello - test"); | ||
+ | close(f); | ||
+ | }; | ||
''Since: Version 0.41b'' | ''Since: Version 0.41b'' |
Revision as of 14:41, 15 April 2013
Overview
This writestring(f,a) function will write the value of a to the file denoted by handle f.
Example
#include <io> function void main() { var f:=open("hello.txt","w"); writestring(f,"hello - test"); close(f); };
Since: Version 0.41b