# PetscViewerVUSetMode
Sets the mode in which to open the file. 
## Synopsis
```
PETSC_DEPRECATED_FUNCTION("Use PetscViewerFileSetMode (since v3.15)") static inline PetscErrorCode PetscViewerVUSetMode(PetscViewer viewer, PetscFileMode mode)
```
Not Collective


## Input Parameters

- ***viewer -*** The `PetscViewer`
- ***mode   -*** The file mode





## Note
Use `PetscViewerFileSetMode()` instead.


## See Also
 `PetscViewerFileSetMode()`

## Level
deprecated

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscviewer.h.html#PetscViewerVUSetMode">include/petscviewer.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscviewer.h)


[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)  
