Difference between pages "Category:Communication Mode Types" and "Writestring"

From Mesham
(Difference between pages)
Jump to navigationJump to search
 
m
 
Line 1: Line 1:
By default, communication in Mesham is blocking (i.e. will not continue until a send or receive has completed.) Standard sends will complete either when the message has been sent to the target processor or when it has been copied into a buffer, on the source machine, ready for sending. In most situations the standard send is the most efficient, however in some specialist situations more performance can be gained by overriding this.
+
== Overview ==
  
By providing these communication mode types illustrates a powerful aspect of type based parallelism. The programmer can use the default communication method initially and then, to fine tune their code, simply add extra types to experiment with the performance of these different communication options.
+
This writestring(f,a) function will write the value of ''a'' to the file denoted by handle ''f''.
  
[[Category:Composite Types]]
+
* '''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

Pages in category ‘Communication Mode Types’

The following 7 pages are in this category, out of 7 total.