# PetscViewerBinaryGetInfoPointer
Extracts the file pointer for the ASCII info file associated with a binary file. 
## Synopsis
```
#include "petscviewer.h"   
PetscErrorCode PetscViewerBinaryGetInfoPointer(PetscViewer viewer, FILE **file)
```
Not Collective; No Fortran Support


## Input Parameter

- ***viewer -*** `PetscViewer` context, obtained from `PetscViewerBinaryOpen()`



## Output Parameter

- ***file -*** file pointer  Always returns NULL if not a binary viewer





## Note
For writable binary `PetscViewer`s, the file pointer will only be valid for the
first processor in the communicator that shares the `PetscViewer`.


## See Also
 [](sec_viewers), `PETSCVIEWERBINARY`, `PetscViewerBinaryOpen()`, `PetscViewerBinaryGetDescriptor()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/impls/binary/binv.c.html#PetscViewerBinaryGetInfoPointer">src/sys/classes/viewer/impls/binary/binv.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/impls/binary/binv.c.html#PetscViewerBinaryGetInfoPointer_Binary">PetscViewerBinaryGetInfoPointer_Binary in src/sys/classes/viewer/impls/binary/binv.c</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
