Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!news.funet.fi!uwasa.fi!ts From: ts@uwasa.fi (Timo Salmi) Newsgroups: comp.lang.pascal Subject: Re: file not found error Message-ID: <1991Feb15.134412.12628@uwasa.fi> Date: 15 Feb 91 13:44:12 GMT References: Organization: University of Vaasa Lines: 28 In article jed1@ra.MsState.Edu (Joseph E. Dunston) writes: >I have a strange problem with tp 6.0 , here is a piece of code: > >Reset (datafile1); >Rewrite(datafile2); > >While not eof(datafile1) do > While not eoln(datafile2) do > begin > ........ > >We gat a file not found error if the code is left as stands. If we comment >out the not in both of the while statements, no error. >What gives ??????? Well, aren't eof and eoln true by default whenever we are not specifically in the middle of an _existing_ file or a line. And have you first checked for the existence of datefile1. And why an eoln in the context of a file that is being written to? I don't quite see the logic. What kind of files are these supposed to be? Text probably? You may find your answer by considering these points and questions. ................................................................... 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