Article View: borland.public.jbuilder.java.language
Article #18266Re: Dateistatus einer Shared-Datei
From: Ingo Kopido
Date: Fri, 24 Jul 1998 00:00
Date: Fri, 24 Jul 1998 00:00
38 lines
1754 bytes
1754 bytes
Hello Jan, Thanks for your suggestion but that wouldn't work. I've tried this before but the result of the canRead() method is true for an opened shared file. A shared file is writable and readable if its opened. Because of this fact the application do not know if the file is opened so the canRead() or canWrite() method wouldn't help. At this time i'm doing it this way : - trying to rename the file to a temprary file (name) - if the temp-file exits then the original-file is not opened - else the original-file is opened by another application This works but it's not satisfying at all. So if you got a better solution please let me know. Thanks, Ingo. On Tue, 21 Jul 1998 15:04:52 +0200, "Fa.Zeppelin" <Fa.Zeppelin@micronet.de> wrote: >Ingo, try the canRead() method of the File Class. > >Jan Hoffman > > >Ingo schrieb in Nachricht <35a222c0.15024653@123.0.0.50>... >>Wie laesst sich ermitteln ob eine Datei bereits von einem anderen >>Programm geoeffnet wurde bzw. wie laesst sich bei einer Shared-Datei >>ermitteln ob sie bereits geschlossen wurde, oder ob sie noch >>beschrieben wird ?? >> >>Fuer eine Antwort waere ich sehr dankbar ! >> >>- Ingo > >
Technical Details
Message-ID:
<35b84257.5083865@123.0.0.50>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35a222c0.15024653@123.0.0.50> <6p23t6$k705@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,e7e28aec3a69650 X-Google-Attributes: gidf74b3,public From: Ingo Kopido Subject: Re: Dateistatus einer Shared-Datei Date: 1998/07/24 Message-ID: <35b84257.5083865@123.0.0.50> X-Deja-AN: 374453082 Cache-Post-Path: Sol.prolink.de!unknown@login-22.prolink.de References: <35a222c0.15024653@123.0.0.50> <6p23t6$k705@forums.borland.com> Organization: PROLINK GbRmbH X-Cache: nntpcache 2.3.2 (see http://www.nntpcache.org/) Newsgroups: borland.public.jbuilder.java.language