Re: Checking if File Open
- Posted by OtterDad <otter at full-moon.com> Jun 30, 2005
- 578 views
as much as i hate to commit on-line suicide by questioning Derek, a question comes to mind. your example appears to handle only files opened by Euphoria itself, which has no true open shared mode. would your code work to read a file opened by another language, say PowerBuilder, which supports files opened in a shared mode by multiple users? a trick i often use to test if a file is REALLY closed, is to use a WinAPI call to move the file to a temp directory and then back home again. the OS won't move files opened in shared mode. just a thought. Yours, OtterDad Don't sweat it -- it's not real life. It's only ones and zeroes. Gene Spafford