Back Previous Next


Linguist basic package - open

Syntax:

   open {file} {name}
   open {file} using dialog {title} [at {left} {top}]
   open {socket} [port] {port}

Keyword handler:

   linguist.basic.keyword.BKOpen.class

Runtime handler(s):

   linguist.basic.handler.BHOpen.class

Function:

The first two versions open an existing file. You can either provide a pathname or request a dialog. If the latter, the system will remember the last directory you visited and return to it next time. If you want to run the script on more than one operating system make sure to use Unix-type path separators as in the example. See also close.

The third form opens a datagram socket. You must specify the port number to use on this socket; numbers below 1024 have special uses so you'll probably want a higher number. See write, close and on.

Example(s):

   open InputFile "MyData/mydata.txt"
   open InputFile using dialog "Choose a file" at 300 450
   open MySocket port 1599


Back Previous Next