[Date Index] [Thread Index] [Author Index]
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