Article View: comp.lang.prolog
Article #2430Re: Reading text files in Prolog
From: Dennis C Merritt
Date: Wed, 27 Jan 1993 01:24
Date: Wed, 27 Jan 1993 01:24
12 lines
931 bytes
931 bytes
This is a yucchy part of Prolog. The best thing is to use the read_in/1 predicate defined in Clocksin & Mellish, if you can still get a copy. It seems to be out of print. It lets you define how you want to parse the text input, whether to get lines, sentences, what is white space, etc. If you have trouble finding it I can send it to you via mail -- Dennis Merritt Amziod, PO Box 273, Stow, MA 01775 Tel 508/897-7332, FAX 508/897-2784, amziod@world.std.com
Technical Details
Message-ID:
<C1HnwH.3I9@world.std.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!olivea!spool.mu.edu!howland.reston.ans.net!sol.ctr.columbia.edu!eff!world!amziodReferences:
<1993Jan21.210835.1@ntc02.tele.nokia.fi>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!olivea!spool.mu.edu!howland.reston.ans.net!sol.ctr.columbia.edu!eff!world!amziod From: amziod@world.std.com (Dennis C Merritt) Newsgroups: comp.lang.prolog Subject: Re: Reading text files in Prolog Message-ID: <C1HnwH.3I9@world.std.com> Date: 27 Jan 93 01:24:15 GMT References: <1993Jan21.210835.1@ntc02.tele.nokia.fi> Organization: The World Public Access UNIX, Brookline, MA Lines: 12