Message-ID: <3B106279.79E8D64C@sympatico.ca> Date: Sat, 26 May 2001 22:12:09 -0400 From: Pierre Leblanc X-Mailer: Mozilla 4.06 [fr]C-SYMPA (Win98; U) MIME-Version: 1.0 Newsgroups: borland.public.delphi.objectpascal Subject: Re: wierd I/O error 103 HELP.... References: <3b1005b3_2@dnews> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable NNTP-Posting-Host: 64.228.244.144 X-Trace: dnews 990929388 64.228.244.144 (26 May 2001 19:09:48 -0700) Lines: 37 Path: dnews Xref: dnews borland.public.delphi.objectpascal:189878 Hi Bryan, I got an I/O 103 this week too. And it was because on my save procedure, there was some writeln instead of readln . This is probably not the case for= you. It's easy with copy-paste to make these silly errors. Pierre Bryan Ray a =E9crit: > Hi all, > > I keep getting I/O error 103. From what I can tell, this means that the > file is not open when I'm trying to write to it, or close it. > I have uploadfile : textfile as a global variable. > I assign the file with: assignfile(uploadfile,'upload.txt'); > > I'm creating the file with rewrite(uploadfile). then I do a few other > routines in different units and use writeln(uploadfile,'text') in those= > units, then come back to close the file, I get this error. As a test, I > took out > closefile(uploadfile) out of my code, but still get the 103 error. > > I am running D5 Pro, with Win 2k. > > Is there anything else that will close or lock a file, or generate error 103 > without using closefile(uploadfile)? > > Thanks > Bryan