# PetscSynchronizedFGets

Several processors all get the same line from a file.

### Synopsis

    int PetscSynchronizedFGets(MPI_Comm comm,FILE* fp,int len,char string[])

Collective on MPI_Comm

### Input Parameters

| comm | - the communicator
| fd | - the file pointer
| len | - the lenght of the output buffer

### Output Parameter

string -the line read from the file

### See Also

PetscSynchronizedPrintf(), PetscSynchronizedFlush(),
PetscFOpen(), PetscViewerASCIISynchronizedPrintf(), PetscViewerASCIIPrintf()

Level:intermediate
Location: src/sys/src/fileio/mprint.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages