Re: The Mother of All Euphoria Questions (Apologies in Advance)
- Posted by Stuart Brady <stu.doofer at CARE4FREE.NET> Jan 24, 2000
- 487 views
> > I simply want to display a large text file on the screen. I read in the > text > > file line by line as in the library gets example. I am unable to simply > > puts, printf etc the large sequence onto the display. > Try this: > > sequence s > object line > integer fn > fn = open("text.txt","r") > s = {} > > while 1 do > line = gets(fn) > if atom(line) then exit > else s &= line > end if > end while > close(fn) > > puts(1,s) Yes I see what my problem was. I was using append and believed the library descriptions of puts and printf actually printing sequences. :-p The sequences have to be 'simple'. i.e. not contain 'other sequences'. {1,2,3,4,5} O.K. {1,2,3{4,5}} *error* The use of concatenation is a bit understated in the documentation. Stuart