Re: Question about filenames for Export[...]
- To: mathgroup at smc.vnet.net
- Subject: [mg99755] Re: Question about filenames for Export[...]
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 13 May 2009 05:08:17 -0400 (EDT)
- Organization: Uni Leipzig
- References: <gubgej$9v0$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi,
Table["MyName"<>ToString[PaddedForm[i,3,NumberPadding->{"0","0"}]],{i,0,10}]
?
Regards
Jens
Lorents wrote:
> Hello,
> I'm using Mathematica 6.
> I'd like to know how to define a file name (to be later used in Export) so
> that the file name contains the value of an index variable i.
> To exemplify, in Fortran this task would be accomplished by something like:
>
> character(len) :: FileName
> ...
> write(FileName,'(A,I4.4)') 'MyName', i
>
> These lines would produce filenames which, for i=1,2,... are MyName0001,
> MyName0002, ...
>
> Is there any neat way of doing the same with Mathematica?
>
> Lorenzo
>
>
>