Difference between revisions of "Writestring"

From Mesham
Jump to navigationJump to search
(Created page with '== Overview == This writesmring[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]…')
 
m
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
  
This writesmring[f,a] function will write the value of ''a'' to the file denoted by handle ''f''.
+
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
 
* '''Pass:''' The [[File]] handle to write to and the [[String]] to write

Revision as of 13:15, 13 January 2013

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

#include <io>
var f:=open("hello.txt","w");
writestring(f,"hello - test");
close(f);