Re: simple question

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

Hello Cris and Rubens,

If your working on a CGI orientated scheme then you may (or may not) find
my CGI-Online phone book in the RDS archives worth at least a quick look.
Search on "intphone".  The eucgi.e include file has a couple of handy
routines.  I'm sure they could be improved upon smile

Regards,

Andy Cranston.

At 06:09 PM 12/19/02 -0300, you wrote:
>
>Hey Cris;
>
>I'm just doing the same for a cgi routine. Try this:
>
>give buffer a first value: buffer={}
>
>
>I holpe this solve your problem.
>Rubens
>
>At 16:01 19/12/2002, you wrote:
>>
>>Please bear with me, as I'm a brand spankin' new user
>>of Euphoria.
>>
>>All I'm trying to do is read a text file into a
>>sequence, and then turn around and print the sequence
>>onscreen.  I'm using the following code:
>>
>>sequence buffer
>>object line
>>integer fn
>>
>>fn = open("c:\\filename.txt","r")
>>if fn = -1 then
>>         puts(1,"Couldn't open file\n")
>>         abort(1)
>>end if
>>
>>while 1 do
>>         line = gets(fn)
>>         if atom(line) then
>>                 exit
>>         end if
>>         buffer = append(buffer,line)
>>end while
>>
>>printf(1,"%s",{buffer})
>>
>>When I try to run the above, I get the following error
>>message:
>>
>>"sequence found inside character string"
>>
>>What am I doing wrong?
>>
>>
>
>
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu