# PetscViewerGetFilename

Gets the name of the file the PetscViewer uses.

### Synopsis

    #include "petsc.h"
    int PetscViewerGetFilename(PetscViewer viewer,char **name)

Not Collective

### Input Parameter

viewer -the PetscViewer; either ASCII or binary

### Output Parameter

name -the name of the file it is using

### See Also

PetscViewerCreate(), PetscViewerSetType(), PetscViewerASCIIOpen(), PetscViewerBinaryOpen(), PetscViewerSetFilename()

Level:advanced
Location: src/sys/src/viewer/impls/ascii/filev.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages