Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*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 1996

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

Search the Archive

Re: file name as mathematica function parameter

  • To: mathgroup at smc.vnet.net
  • Subject: [mg5034] Re: [mg4996] file name as mathematica function parameter
  • From: Andrei Constantinescu <constant at athena.polytechnique.fr>
  • Date: Sat, 19 Oct 1996 16:40:36 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

I don't think there is any problem in doing this. You have here a
program I did some time ago:

ReadMail[ fileName_String ] :=
     (
       file = OpenRead[fileName];
       nomail = Read[file, Number];
       xmail  = ReadList[file, Real, nomail] ;
       ymail  = ReadList[file, Real, nomail] ;
       Close[file]
     )

... and the hint is to use the OpenRead - command as you might 
remark.

However for a List you might also try to use:

  ReadList[ fileName , { Number, Number } ] 

... or something close !


  Andrei



  • Prev by Date: Derivatives of InterpolatingFunctions
  • Next by Date: Re: The farthest apart points problem
  • Previous by thread: Re: Derivatives of InterpolatingFunctions
  • Next by thread: Re: file name as mathematica function parameter