Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: misc.fclose - Function Up: misc - Tool Previous: misc.filetype - Function


misc.fopen - Function



Package utility
Module misc
Tool misc


interface to c fopen


Synopsis
fopen(filename, mode)


Description
This function and those following emulate the low-level input/output functions available in C. We expect to replace these in the near future.

This function opens a file, returning a file id (an integer) that must be used to close the file.



Arguments

filename   File name
    Allowed: String
mode   UNIX mode of access
    Allowed: Usually r, w, or a


Returns
fileid


Example
- bugReport := spaste('/tmp/bugreport.',emailID)
- fp := dms.fopen(bugReport, 'w')
- dms.fclose(fp)
T
In the example, a filename found in the string variable bugReport is opened for writing.





next up previous contents index
Next: misc.fclose - Function Up: misc - Tool Previous: misc.filetype - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15