MathGroup Archive 1996

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

Search the Archive

Re: file name as mathematica function parameter


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