From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 7 Feb 93 02:09:11 GMT From: mdisea!uw-coco!nwnexus!emagnuso@uunet.uu.net (Erik Magnuson) Subject: Re: Two "Simple" I/O Questions Message-ID: <1993Feb7.020911.28040@nwnexus.WA.COM> List-Id: In article <1993Feb5.083009.26460@cs.ucla.edu> gast@CS.UCLA.EDU (David Gast) wr ites: >Essentially, I just want a program like "cp" or "cat". All it has >to do is copy the input to the output. I have found two problems. > >1) Text_IO does not handle 8-bit characters. Is there another > package which does? > Two suggestions: 1) Use Sequential_IO instantiated for an 8 bit type. However, this may rather inefficient if your implementation does a poor job of IO buffering. 2) If none of the other IO packages doe what you want, write your own using OS primitives. It's not that hard, honest. -- Erik