MathGroup Archive 2006

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

Search the Archive

Re: <> doesn't work in filename in a batch mode ?


bar at ANTYSPAM.ap.krakow.pl wrote:
> When i used :
> 
> dir = "/home/bar/TMP/";
> lists >> dir <> "filename.lst";
> 
> it works correctly in graphical mode (notebook)
> When i try use it in batch mode ( math < file.m)
> i obtained:
> 
> Syntax::sntxf: "lists>>dir" cannot be followed by "<>"filename.lst";".
> 
> 
> Why ?
> 
> 
Try the input form of Put in place of >>
For instance,

Put[list, Evaluate[StringJoin[dir, "filename.txt"]]]

HTH,
Jean-Marc


  • Prev by Date: Mathematics Packages
  • Next by Date: Re: How can I use multiple filename ?
  • Previous by thread: Re: Mathematics Packages
  • Next by thread: Re: <> doesn't work in filename in a batch mode ?