Re: more sequence help

new topic     » goto parent     » topic index » view thread      » older message » newer message

Knowing the general structure of supplierdata would be helpful.
I'm guessing that you are getting an error because you have the following
structure.
supplierdata = {"Line1", "Line2", "Line3"}
Assuming that you want the output file to look like this.

Line1
Line2
Line3

There are 2 methods to do it.  I prefer one over the other.
You could build a format sequence to use with printf(). --Bad idea.
or you could just cycle through the sequence using a loop.
In either case you will have to use a loop.

integer newline
newline = '\n'
for A = 1 to length(supplierdata) do
  puts(supplierfname, supplierdata[A] & newline)
end for

        Lucius L. Hilley III
        lhilley at cdc.net
+----------+--------------+--------------+
| Hollow   | ICQ: 9638898 | AIM: LLHIII  |
|  Horse   +--------------+--------------+
| Software | http://www.cdc.net/~lhilley |
+----------+-----------------------------+
----- Original Message -----
From: "Paul Sheepwash" <whalley99 at HOTMAIL.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Friday, February 18, 2000 5:11 PM
Subject: more sequence help


> ---------------------- Information from the mail
header -----------------------
> Sender:       Euphoria Programming for MS-DOS
<EUPHORIA at LISTSERV.MUOHIO.EDU>
> Poster:       Paul Sheepwash <whalley99 at HOTMAIL.COM>
> Subject:      more sequence help
> --------------------------------------------------------------------------
-----
>
>
> ------=_NextPart_000_003B_01BF7A2A.C337EAA0
>         charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Once again I throw myself at the feet of the masters and humbly beg for =
> help. . . . . .=20
>
> here is what I am trying to do
>
> supplierfname=3D open(sname & ".dat", "w")
>
>         printf( supplierfname, "%s", {supplierdata} )
>
>         close(supplierfname)
>
> what am I doing wrong?  I want to save this sequence into a file and it =
> keeps giving me errors?
>
> Help!!!
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu