Difference between pages "Ceil" and "Writestring"
From Mesham
(Difference between pages)
Jump to navigationJump to searchm (4 revisions imported) |
|||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
− | |||
− | * '''Pass:''' | + | This writestring(f,a) function will write the value of ''a'' to the file denoted by handle ''f''. |
− | * '''Returns:''' | + | |
+ | * '''Pass:''' The [[File]] handle to write to and the [[String]] to write | ||
+ | * '''Returns:''' Nothing | ||
== Example == | == Example == | ||
− | #include < | + | #include <io> |
+ | |||
function void main() { | function void main() { | ||
− | var | + | var f:=open("hello.txt","w"); |
− | + | writestring(f,"hello - test"); | |
+ | close(f); | ||
}; | }; | ||
Line 16: | Line 19: | ||
[[Category:Function Library]] | [[Category:Function Library]] | ||
− | [[Category: | + | [[Category:IO Functions]] |
Latest revision as of 15:44, 15 April 2019
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