LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: L WK (phase2phasel_at_[hidden])
Date: 2005-09-25 07:38:45


Hi there,
  I am looking for a code to read/write file as a pure text format. In C,
one can use fprintf to output a text in given format. Can MPI_File_xxx
do that?

Again, how can I read the formatted text file like

 data_name value
 A 12.3
 B 10.0
 C 0.2

With C, one can read the file with fscanf(fp, "%s%f", &s, &v); How can
MPI do that?

In 8-node network, I try to use fscanf/fprintf to read/write from/to the
same file located in NFS, but the program will work only if not more
than six processes running at the same time. I wonder if MPI ban the IO
operation

Thanks in advance.

_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn