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


next up previous contents index
Next: File Information Up: Input and Output Previous: User Interaction


Binary I/0

You store Glish values to a file and read them from a file in binary format using write_value() and read_value().

write_value(value, file) writes a representation of the given value to the file (which should be a string). Presently only values of type numeric, string, or record are supported. Values of type reference are first dereferenced before being written.

write_value() returns T if successful and F if not.

read_value(file) reads a Glish value from the file (interpreted as a string) and returns it, or F if it encountered problems.

Note that when stored in files Glish values correspond to SOS datasets. (See Chapter 16, page [*], for a discussion of SOS.)


next up previous contents index
Next: File Information Up: Input and Output Previous: User Interaction   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