Meta Project

The Unofficial Meta Documentation

OPEN

Summary

OPEN opens a file handle for the program.

Category

FILE-IO GENERAL-IO

Usage

OPEN value

Arguments

value - description of the value

Refinements

/APPEND - Open the file for appending new information at the end of current contents.

/NEW - Open as a new file, discarding (throwing away!!) previous contents of the file.

Description

OPEN opens a file handle to address the various IO actions for the program.

Example Code

file-in: ./functions.in.txt

Either fhandle-in: try open file-in [
    write "Reading input file " write/line file-in
][
    write/line "Not able to open file: "
    write/line file-in
    bye
]

Related

CLOSE  
TAKE  
READ  
APPEND  

Back to the Meta Methods Reference index