next up previous contents FITSIO Home
Next: 10.2.1 Notes about HTTP Up: 10. Extended File Name Previous: 10.1 Overview   Contents

10.2 Filetype

The type of file determines the medium on which the file is located (e.g., disk or network) and, hence, which internal device driver is used by CFITSIO to read and/or write the file. Currently supported types are

        file://  - file on local magnetic disk (default)
        ftp://   - a readonly file accessed with the anonymous FTP protocol.
                   It also supports  ftp://username:password@hostname/...
                   for accessing password-protected ftp sites.
        http://  - a readonly file accessed with the HTTP protocol.  It
                   does not  support username:password like the ftp driver.
                   Proxy HTTP survers are supported using the http_proxy
                   environment variable.
       gsiftp:// - to access files on a computational grid using the
                   gridftp protocol in the Globus toolkit
        root://  - uses the CERN root protocol for writing as well as
                   reading files over the network.
        shmem:// - opens or creates a file which persists in the computer's
                   shared memory.
        mem://   - opens a temporary file in core memory.  The file
                   disappears when the program exits so this is mainly
                   useful for test purposes when a permanent output file
                   is not desired.
If the filetype is not specified, then type file:// is assumed. The double slashes '//' are optional and may be omitted in most cases.



Subsections