Re: writing a value of an expression defined in a delayed module to a file.

*To*: mathgroup at smc.vnet.net*Subject*: [mg50408] Re: writing a value of an expression defined in a delayed module to a file.*From*: sean kim <sean_incali at yahoo.com>*Date*: Thu, 2 Sep 2004 04:34:38 -0400 (EDT)*Reply-to*: sean_incali01 at yahoo.com*Sender*: owner-wri-mathgroup at wolfram.com

actually... nevermind. In[11]:= SetDirectory["C:\\Temp"] testfunc[num_]:= Do[Module[{}, list =Table[Random[Real, {0, 1}], {i, 10}]; list>>>test.txt ],{n, num} ] testfunc[10] works as expected. --- posting-system at google.com wrote: > From: sean_incali at yahoo.com (sean kim) To: mathgroup at smc.vnet.net > Newsgroups: comp.soft-sys.math.mathematica > Subject: [mg50408] writing a value of an expression defined in > a delayed module to a file. > NNTP-Posting-Host: 128.195.64.98 > Message-ID: > <4d47f9d3.0408312357.7de7c3d6 at posting.google.com> > > Hello group, > > I can't seem to figure out how to write values of > random numbers > chosen for expressions that are defined in a delayed > function module. > > for instance. > > SetDirectory["C:\\Temp"] > testfunc:= Do[Module[{}, > list =Table[Random[Real, { 0, 1}], {i, 10}]; > list>>>test.txt > ],{n, 10} ] > > doesn't output a file named test.txt to c:/temp > > but the below does. > > SetDirectory["C:\\Temp"] > Module[{}, > list =Table[Random[Real, { 0, 1}], {i, 10}]; > list>>>test.txt > ] > > how do i make the first example output a file with > the values intact > and still keep delayed function? > > thanks much in advance > > sean > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail