Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | utility | |
Module | misc | |
Tool | misc |
This function opens a file, returning a file id (an integer) that must be used to close the file.
filename | File name | ||
Allowed: | String | ||
mode | UNIX mode of access | ||
Allowed: | Usually r, w, or a |
- bugReport := spaste('/tmp/bugreport.',emailID) - fp := dms.fopen(bugReport, 'w') - dms.fclose(fp) TIn the example, a filename found in the string variable bugReport is opened for writing.