Wrox Programmer Forums
Other Programming Languages If you have a coding issue to discuss about another language that really isn't provided for in any other forum here (not ASP.NET C#, C++, VB, PHP, JavaScript, Python, Java, Perl, Applescript, XML or any of the other forum topics we have), post it here. Enough discussion on a language we don't have covered could prompt a new forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Other Programming Languages section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 8th, 2007, 12:49 PM
Registered User
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reading input from files PROLOG



I would like to know the best way of reading and writing to more than one file at a time. What my program does is it consults a file for patterns and uses them for output to the screen. In some cases I will need to create another file for a new user whereby I will still need the pattern file open to give responses to screen but to also write pattern matches to the users file.

What would be the best approach? Is it possible to consult two files at once and could someone explain the built-in load and save functions in prolog.

All help greatly appreciated.

Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicating files in Prolog Ruman29 Other Programming Languages 0 March 8th, 2007 05:27 PM
Reading Console Input code_lover Java Basics 4 February 14th, 2007 09:08 AM
reading a row of characters from an input file Omega_st1 C++ Programming 4 October 28th, 2003 01:35 AM
Reading string data from an input file Omega_st1 Visual C++ 0 October 15th, 2003 05:10 PM
reading files nightsurfer JSP Basics 0 August 10th, 2003 04:34 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.