Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Martin Newsgroups: comp.sys.acorn.programmer Subject: Re: OS_Find &4F Date: Sun, 22 Feb 2026 10:14:25 +0000 (GMT) Organization: None Lines: 48 Message-ID: <5caf1565f8News04@avisoft.f9.co.uk> References: <2b3b10af5c.jmb@jmc.bruck.orange.fr> Injection-Date: Sun, 22 Feb 2026 10:14:35 +0000 (UTC) Injection-Info: dont-email.me; posting-host="1e9805292959aa1e0e8b643d5380f344"; logging-data="2133719"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hxTutsxlMqfN7RRmHQCgm" User-Agent: Pluto/3.21a (RISC OS/5.31) NewsHound/v1.54 Cancel-Lock: sha1:GC4O9i2BocYvx+fKcDGvw+DyxKc= Xref: csiph.com comp.sys.acorn.programmer:6594 In article <2b3b10af5c.jmb@jmc.bruck.orange.fr>, Jean-Michel wrote: > In message > Paul Stewart wrote: > > Hi there, > > Trying to read a log file when the file is already open by the > > the utility that is create it.(downloading a file using WGet and > > reading the log file to display percentage downloaded) > > Using SYS "XOS_Find",&4F,file$ TO handle% > > Now the above works fine on my RO4.42 and RO5 devices. > > When I test with VRPC with RO4 and RO6, Error is generated: > > Handle is either illegal or has been closed and errors with the > > line number the above SYS command is on. > > I'm doing > > OS_Find command to open the file > > getting the size > > OS_GBPB to read into buffer > > OS_Find to then close the file. > > Above all works fine on 4.42 and 5, but generates the Handle is > > either illegal or has been closed error on RO4 and RO6. > > Any ideas as to why the RO4 and RO6 do not like SYS > > "XOS_Find",&4F,file$ TO handle% with a file that is already open > > and being updated, where as other OS's are fine with it? > Not sure, but osfind must have evolved According to OSLib's SHelp > manual, there are 32bit handles, the old ones were 8bit. from > version 6.3 the handles are 32 bits. I don't know how to > distinguish with Sys "OSfind" on Ro4 ? > You can display handle% for comparison. (Reporter is fine!) I suspect the differences are more to do with the FileSystem being used, rather than the RISC OS version. I have certainly seen differences in what can be done to open files on different file systems. -- Martin Avison Note that unfortunately this email address will become invalid without notice if (when) any spam is received.