Difference between pages "Allocated" and "Writestring"
From Mesham
(Difference between pages)
Jump to navigationJump to search (→Syntax) |
m |
||
Line 1: | Line 1: | ||
− | == | + | == Overview == |
− | + | This writestring(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 [[String]] to write | |
− | + | * '''Returns:''' Nothing | |
− | |||
− | |||
− | |||
== Example == | == Example == | ||
− | var | + | #include <io> |
+ | var f:=open("hello.txt","w"); | ||
+ | writestring(f,"hello - test"); | ||
+ | close(f); | ||
− | + | ''Since: Version 0.41b'' | |
− | [[Category: | + | [[Category:Function Library]] |
− | [[Category: | + | [[Category:IO Functions]] |
− |