Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!RICHTER.MIT.EDU!krowitz From: krowitz@RICHTER.MIT.EDU (David Krowitz) Newsgroups: comp.sys.apollo Subject: Re: Help requested for file conversions Message-ID: <8905311358.AA03637@richter.mit.edu> Date: 31 May 89 13:58:34 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 23 You can do it with a relatively short program ... (which I haven't gotten around to writing yet, of course) Use the IOS_$INQ_TYPE_UID call to get the file's object type. Then use the mapped segment calls (the MS_$ calls) to open and read the entire file (including the 32-byte header) into a buffer. Use the IOS_$CREATE call to create an ascii file and then write the object type and the data from the original file into this ascii file and close it. You can then use uuencode and mail the file. When the file is received, you go through the reverse process (uudecode, open the ascii file and read the object type and the data, use IOS_$CREATE to create a file of the proper type and use the MS_$ calls to write the data into the file). -- David Krowitz krowitz@richter.mit.edu (18.83.0.109) krowitz%richter@eddie.mit.edu krowitz%richter@athena.mit.edu krowitz%richter.mit.edu@mitvma.bitnet (in order of decreasing preference)