Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!agate!sandstorm.Berkeley.EDU!magid From: magid@sandstorm.Berkeley.EDU (Paul Magid) Newsgroups: comp.lang.pascal Subject: Text file problem Message-ID: <1991Apr28.005226.17659@agate.berkeley.edu> Date: 28 Apr 91 00:52:26 GMT Sender: root@agate.berkeley.edu (Charlie Root) Organization: ucb Lines: 14 I am trying to read the first 14 bytes of each line of a text file to check for a particular string. I would then like to append a couple of bytes to that line. The way I have it written is that I open a text file then I read a 14 byte string {ie: type string[14]} when the particular string is found I use write to try to append the bytes to the file. The program searches and finds the relevant string perfectly, but once I try to write the bytes to be appended to the file I get a run time error. I have filemode set to 2. Any help will be greatly appreciated. Paul