Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2026.1

# StrDict::Save( FILE * )

Marshals the `StrDict` into a text file.

Virtual? | No |
Class | `StrDict` |
Arguments | `FILE *out` | the file to save to
Returns | `int` | always equals 1

## Notes

`Save()` stores the `StrDict` in a marshaled form to a text file, which can be recovered by using `Load()`.

## Example

The following example "saves" a `StrDict` by writing it to `stdout`.

Copy

    void MyClientUser::OutputStat( StrDict *varList )
    {
        varList-&gt;Save( stdout );
    }

Executing the preceding code produces the following output:

    > a.out fstat //depot/file.c

    depotFile=//depot/file.c
    clientFile=c:\test\depot\file.c
    headAction=edit
    headType=text
    headTime=1020067607
    headRev=4
    headChange=2042
    headModTime=1020067484
    func=client-FstatInfo

Your search for returned results