users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to read a line of text?


From: Ron Stodden
Subject: How to read a line of text?
Date: Sun, 04 Jan 2004 13:08:10 +1100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031015

How to read lines from a text file to a list in gprolog?

I have unsuccessfully tried all the read variants, the best so far being read_char, but that leads to 'atom table full' under gplc when reading a text file of 3090 lines, 238,153 characters on my 256KB ram machine. That is no good, period!

The same happens when run interactively from gprolog, but it does not get so far.

I feel a read_line description must be missing from the documentation?

Like directory_files, but file_lineslist?

There are no examplesPL of any input/output!

Anybody know how?

Any ideas?

--
Ron. [Melbourne, Australia]
"If you keep a green bough in your heart, the singing bird will come"
Get Fastest Mandrake downloader, English-only, from:
http://members.optusnet.com.au/ronst/    <--- Last Change 2nd November!






reply via email to

[Prev in Thread] Current Thread [Next in Thread]