[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How do I test for the existens of a file
- From: "Jeff Wise" <jwise@...>
- Date: Fri, 24 Oct 2008 10:12:30 -0500
➢ I wonder which one will be faster, assuming there is a difference?
My guess is that it is OS-dependent. In the world I came from, “Open” is much more cycle intensive. In fact Open first answers the question “Does it exist?” before it does all its other processing (buffers, control blocks, connection to appropriate I/O routines, security, etc). In fact, I can't imagine how open would be less cycle intensive on any platform, but that is conjecture.