Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: specifying the output filename as a parameter to a function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15195] Re: specifying the output filename as a parameter to a function
  • From: Wagner Truppel <wtruppel at uci.edu>
  • Date: Tue, 22 Dec 1998 04:01:29 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

Don,

I had the same problem recently and managed to solve it using Put[]  and
PutAppend[] explicitly, in place of >> and >>>, as in

Put[ yatta, outfile ] or  PutAppend[ yatta, outfile ].

Wagner

At 11:20 PM -0500 on 12/18/98, Don Keefer wrote:

>Good Morning,
>
>I'll make this as short as possible - I have written a function that
>reads in a list of data, modifies it, and writes it out to an external
>file.  I would like to be able to specify the output filename as a
>parameter to the function.  In other words:
>f[x_,y_,outfile_]:=
>(yatta;
>yatta;
>yatta;
>yatta>>outfile)
>When I try this is doesnt work - it just names the outfile "outfile".
>How can this be done?
>Thanks,
>J.Russell
>******************************************************** Don
>Keefer				dkeefer at isgs.uiuc.edu
>Groundwater Geology Section		217-244-2786

____________________________________________________________________

   WAGNER LUIZ TRUPPEL           ***   ARMS ARE FOR HUGGING   ***
____________________________________________________________________

 Dept. of Information and Computer Science   (949)  856 2192 (home)
 University of California, Irvine
 Irvine,  CA   92697    USA                   WTRUPPEL at ics.uci.edu

                http://www.physics.uci.edu/~wtruppel
____________________________________________________________________

Automobile - A mechanical device that runs up hills and down people.
      Quoting one is plagiarism.  Quoting many is research.
____________________________________________________________________


  • Prev by Date: ATCM'99
  • Next by Date: post scrip graphic
  • Previous by thread: ATCM'99
  • Next by thread: post scrip graphic