try except end; :)
when an exception occours it is not finished !? not very "clean" but i think the only way to detect this good Christian ----- Original Message ----- From: "Alexandre Leclerc" <[EMAIL PROTECTED]> To: "lazarus mailinglist" <[email protected]> Sent: Monday, August 14, 2006 8:34 PM Subject: [lazarus] Detect if file is written? > Hi all, > > an application writes a text file on disk (Windows) and my FPC > application opens it to process it. On some systems I open the file > faster than the OS has finished writing it. I then get an 'Unexpected > end of file'. > > I would like to know if there is a way I can detect the file is finish > written on the disk; else should I simply trap the error and then > close/reopen if I get it? > > Regards. > > -- > Alexandre Leclerc > > _________________________________________________________________ > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives > > > _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
