Subj : a problem To : Thomas W. Mueller From : Brian Jennings Date : Wed May 30 2001 08:28 am Thomas W. Mueller wrote on 27-May-2001 to Nenad Mijaljevic: TWM> Hello Nenad. TWM> 27 May 01 07:47, you wrote to all: NM> assign(a,'telefoni.dat'); NM> reset(a); NM> write(a,novi); NM> close(a); TWM> The above ist basically what you are doing. You open a file for TWM> reading and then try to write to it. TWM> Unless you set the file access to readwrite this will not work. TWM> Unfortunately I don't quite recall how to do that. I think there TWM> is a variable somewhere that you must set: FileMode TWM> It should be described in the online help. The default is 2 which is read and write. If the program changes it somewhere then all further reset functions will use that setting until changed back. I read/write to files myself but I use blockread and blockwrite. B.J. email: spitter@iprimus.com.au IRex: delenn@iprimus.com.au --- timEd 1.10.y2k * Origin: The LION's Realm +61-8-8287-0870 (3:800/839) .