Re: open file?
- Posted by Robert Craig <rds at ATTCANADA.NET> Feb 04, 2000
- 465 views
Bernie Ryan writes: > Critical Error: Abort, Retry, Ignore, Fail? That's what happens when you write to a file that's already open for some other purpose. > When I use the builtin open I get a file handle of 3 > When I use Jacques DosOpen in doswrap.e I get a file handle of 5 The file handle number returned by DosOpen is not meant to be the same as the file handle number returned by Euphoria's open(). If there's some relationship, it's just a coincidence, and should not be relied on. Why are you trying to use DosOpen? In his comments Jacques assumes that loading a file into memory with normal Euphoria operations is slow. This is a myth. Do some measurements before you decide that you need DosOpen. You'll probably only save a few milliseconds, and your code won't be portable to Windows or Linux. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com