MathGroup Archive 2006

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

Search the Archive

RE: How can I use multiple filename ?


Hi bar, 


>  When I try :
> For[i=1,i<10,
>     name="a"<>ToString[i];
>     i>>name;
>     i++];
> it doesn'w work

Why the code above dosen't work, I don't know, since 

For[i = 1, i ? 10,
    name = "a" <> ToString[i];
    Export[name, i, "LIST"];
    i++];

works just fine.  However, the code 

	(Export["a" <> ToString[#], #, "LIST"] ) & /@  Range[1, 9]

Is a lot clearer.

You might try replacing the shorthand symbols with their longhand
equivalents (>> -> Export[] and <> -> StringJoin[]) and see how that affects
your other question.

Regards,

Dave.


  • Prev by Date: RE: How can I use multiple filename ?
  • Next by Date: Re: Table through zero...strange
  • Previous by thread: RE: How can I use multiple filename ?
  • Next by thread: Re: How can I use multiple filename ?