Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!spool.mu.edu!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!news.funet.fi!uwasa.fi!ts From: ts@uwasa.fi (Timo Salmi) Newsgroups: comp.lang.pascal Subject: Re: TP error while opening R/O files Keywords: r/o turbo pascal 6.0 borland files opening error Message-ID: <1991May3.041834.18631@uwasa.fi> Date: 3 May 91 04:18:34 GMT References: <1991May02.160542.28060@cs.ruu.nl> Organization: University of Vaasa Lines: 16 In article <1991May02.160542.28060@cs.ruu.nl> ajbanck@cs.ruu.nl (Arent Banck) writes: >Using Turbo Pascal 6.0, I wanted to open a file witch was >write protected. I used RESET to open the file, but ended here >with a error saying I couldn't open a file. >Why can't I open the file? And is there a way to open it? : You first have to set FileMode as 0 from its default value of 2 in order to be able to read a readonly file. The information is in the manual (at least for 5.0), but then it is pretty well hidden. ................................................................... Prof. Timo Salmi Moderating at garbo.uwasa.fi anonymous ftp archives 128.214.12.37 School of Business Studies, University of Vaasa, SF-65101, Finland Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun