Re: Atoms and Sequences
At 18:21 13-12-96 EST, you wrote:
>---------------------- Information from the mail header -----------------------
>Sender: Euphoria Programming for MS-DOS <EUPHORIA at
>MIAMIU.ACS.MUOHIO.EDU>
>Poster: Ray J Connolly <chalkup1 at JUNO.COM>
>Subject: Atoms and Sequences
>-------------------------------------------------------------------------------
>
>Hello all! Trying to output numerical filenames. eg:
>
>x=x+1
>filename="DATA."&x
>fn=open(filename,"w")
>
>How can I get the NUMERAL INTEGER to a filename with that extension?
>I keep getting characters instead of the number I want.
>
>Thanks for any help ...
>Writing in EUPHORIA and lovin' it!
>Ray in Colorado
>
this should do what you want:
filename = "DATA."&sprintf("%03d",{x})
Jacques Deschenes
Baie-Comeau, Quebec
Canada
desja at quebectel.com
|
Not Categorized, Please Help
|
|