:orphan: # PetscViewerBinaryWriteStringArray writes to a binary file, only from the first MPI rank, an array of strings ## Synopsis ``` #include "petscviewer.h" PetscErrorCode PetscViewerBinaryWriteStringArray(PetscViewer viewer, const char *const *data) ``` Collective ## Input Parameters - ***viewer -*** the `PETSCVIEWERBINARY` viewer - ***data -*** location of the array of strings ## Note The array of strings must be `NULL` terminated ## See Also [](sec_viewers), `PETSCVIEWERBINARY`, `PetscViewerASCIIOpen()`, `PetscViewerPushFormat()`, `PetscViewerDestroy()`, `VecView()`, `MatView()`, `VecLoad()`, `MatLoad()`, `PetscViewerBinaryGetDescriptor()`, `PetscViewerBinaryGetInfoPointer()`, `PetscFileMode`, `PetscViewer`, `PetscViewerBinaryRead()` ## Level intermediate ## Location src/sys/classes/viewer/impls/binary/binv.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/impls/binary/binv.c) [Index of all Viewer routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)