Back Previous Next


Linguist basic package - write

Syntax:

   write {value} to {file}
   write {value} to {filename}
   write {value} to {socket} at address {address} port {port}

Keyword handler:

   linguist.basic.keyword.BKWrite.class

Runtime handler:

   linguist.basic.handler.BHWrite.class

Function:

The first form writes a value to a created file. See also read.

The second form writes a value to the file whose name is given, overwriting any previous contents.

The third form writes a value to an open socket, sending it to the address (URL) and port given.

Example(s):

   write "The value is " and Value and return
      to OutputFile
   write the free memory cat " " cat the total memory to "memory.log"
   write "This is my message" to MySocket
      at 100.45.23.182 port 1255


Back Previous Next