[comp.sys.ibm.pc] JPI Modula-2

s32935k@taltta.hut.fi (Carl Torsten Stenholm) (10/06/89)

I'm trying to learn Modula-2, and I have the following problems. According to 
the manual all read and write functions read and write on the Standard Output.
This is not the case. It writes on the StdOut but it doesn't read the StdIn.
According to the manual:

 RdStr: "RdStr reads a string from the standard input"

 It doesn't, it always reads from the keyboard.

 RedirectOutput: "This procedure ... opens a new output stream ... If it is
 closed later , output will be returned to the standard output (even if the
 output stream was redirected to a file on the command line)"
 "To return the standard out to its default, enter the following : "

      RedirectOutput ('CON');

 This, sends all output to the screen (con), not my opinion of StdOut.

 Well my questions are:
 
   1. How do I read on the standard input defined by the user on the command
      line ?

   2. How do I continue writing to it after I have written an error message on
      the console ?


  Reply by E-mail would be appreciated !

         Ctrl-C.Stenholm
         s32935k@taltta.hut.fi