magid@sandstorm.Berkeley.EDU (Paul Magid) (04/28/91)
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