MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Mapping Write

  • To: mathgroup at
  • Subject: [mg43509] Re: Mapping Write
  • From: "Peter Pein" <peter1963 at>
  • Date: Thu, 18 Sep 2003 05:40:04 -0400 (EDT)
  • References: <bk9jki$i$>
  • Sender: owner-wri-mathgroup at

Try MapThread[Write,{{"xFile","yFile","zFile"} ,{x,y,z}}];

"AES/newspost" <siegman at> schrieb im Newsbeitrag
news:bk9jki$i$1 at
> [This NG seems to have gone on an extended summer vacation, on my server
> anyway, just as I started a big project that's been stimulating lots of
> queries.  Hope it's having a good time, and will be back soon.]
> I can successfully Map OpenWrite onto a list of file names, and also Map
> Close onto a list of streams; in particular
>     Map[Close, Rest[ Rest[ Streams[] ] ] ]
> seems to be a good way to close all open streams except the two standard
> ones (though maybe it's risky to assume there are always just two such
> standard streams?).
> Is there a way to use Map to Write a list of variable values to a
> matching list of files, e.g., something like
>     Map[ Write, {x,y,z}, {"xFile","yFile","zFile"} ]

  • Prev by Date: RE: Weird message
  • Next by Date: Re: Weird message
  • Previous by thread: Re: Mathematica 5.0 for students.
  • Next by thread: Re: Mapping Write