MathGroup Archive 2001

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

Search the Archive

Re: OpenWrite

  • To: mathgroup at smc.vnet.net
  • Subject: [mg31706] Re: OpenWrite
  • From: Erk Jensen <Erk.Jensen at cern.ch>
  • Date: Tue, 27 Nov 2001 02:48:01 -0500 (EST)
  • Approved: Steven M. Christensen <steve@smc.vnet.net>, Moderator
  • References: <9tp4jq$jec$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Milo wrote:
> 
> Hi all,
> 
> Please, anybody could give me some examples of OpenWrite, in version
> 3.0.
> 
> Thanks
> 
> Best
> Milo

Dunno about 3.0, but I don't think this has changed:

SetDirectory["c:\\dir\\subdir\\"]; 
datafile = "file.txt";
OpenWrite[datafile];
For[i = 1, i <= Length[coefficients], 
  For[j = 1, j < 6, 
    WriteString[datafile,coefficients[[i]][[j]]," "]; j++]; 
    WriteString[datafile, "\n"]; i++]
Close[datafile]

ciao
    -erk-


  • Prev by Date: right StoppingTest
  • Next by Date: bisection method
  • Previous by thread: OpenWrite
  • Next by thread: URGENT - Wavelets