MathGroup Archive 2001

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

Search the Archive

Re: OpenWrite


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