Since I deleted my last question, because of the need to read more to understand what the experts give out, I have come across this particular problem several times. I put clip Of my code here which goes as follows-
writeln('save these details (Y/N)?);
if (reply='y') or (reply='Y')
write(Inco,Newrec);<-'file access denied' error flagged here
writeln('do you wish to continue?(Y/N)');
until (reply='n') or (reply='N');
The file is opened up as usual at the beginning of the procedure and the contents of the file seeked ie;
if not eof(InCo)
then the data is entered, when the request is made to save, then the file access error aboughts the program.
Why should this be as the record has to be written to file; write(InCO,Newrec);
Thanks for your help...chrisbee.