Re: simple question
- Posted by acran at readout.fsnet.co.uk Dec 21, 2002
- 421 views
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 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? >> >> > > >