Difference between pages "Operators" and "Writestring"

From Mesham
(Difference between pages)
Jump to navigationJump to search
(Operators)
 
m
 
Line 1: Line 1:
== Operators ==
+
== Overview ==
#+  Addition
 
#-  Subtraction
 
#<nowiki>*</nowiki>  Multiplication
 
#/ Division
 
#++  Pre or post fix addition
 
#--  Pre or post fix subtraction
 
#<< Bit shift to left
 
#>>  Bit shift to right 
 
#==  Test for equality 
 
#!=  Test for inverse equality
 
#!  Logical negation
 
#( )  Function call or expression parentheses
 
#[ ]  Array element access
 
#.  Member access
 
#< Test lvalue is smaller than rvalue
 
#>  Test lvalue is greater than rvalue 
 
#<=  Test lvalue is smaller or equal to rvalue
 
#>=  Test lvalue is greater or equal to rvalue
 
#?:  Inline if operator
 
#|||  Logical short circuit OR
 
#&&  Logical short circuit AND
 
#|  Logical OR
 
#&  Logical AND
 
#+= Plus assignment
 
#-= Subtraction assignment
 
#<nowiki>*</nowiki>= Multiplication assignment
 
#/= Division assignment
 
#%= Modulus assignment
 
  
[[Category:Core Mesham]]
+
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);
 +
 
 +
''Since: Version 0.41b''
 +
 
 +
[[Category:Function Library]]
 +
[[Category:IO Functions]]

Revision as of 18:42, 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); 

Since: Version 0.41b