Path: utzoo!attcan!uunet!bu.edu!att!iuvax!ux1.cso.uiuc.edu!resnick From: resnick@cogsci.uiuc.edu (Pete Resnick) Newsgroups: comp.sys.mac.programmer Subject: File Manager questions Message-ID: <1990Oct22.215317.19545@ux1.cso.uiuc.edu> Date: 22 Oct 90 21:53:17 GMT Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 25 Two questions, one which I had asked long ago but have forgotten the answer to: 1. I am reading a file and sending it over a TCP connection. That means I have to convert newline's to CR/LF and not take any non-ASCII characters. Assuming that the file I am reading has been typed in TeachText or some other text editor, what will be the easiest way to read it in the right format? (I am assuming that autowraps don't count here and that they are not in the file I am reading. Correct me if this is mistaken). 2. This file reading is going to be done by a device driver during accRun time. Is it possible to leave the file open between accRun calls? In other words, can I open the file into the system heap so that it wont be closed when an application exits? Sorry if these are repeats of old questions. pr -- Pete Resnick (...so what is a mojo, and why would one be rising?) Graduate assistant - Philosophy Department, Gregory Hall, UIUC System manager - Cognitive Science Group, Beckman Institute, UIUC Internet/ARPAnet/EDUnet : resnick@cogsci.uiuc.edu BITNET (if no other way) : FREE0285@UIUCVMD