Path: utzoo!attcan!uunet!cbmvax!jesup From: jesup@cbmvax.UUCP (Randell Jesup) Newsgroups: comp.sys.amiga.tech Subject: Re: DOS questions Keywords: DOS seek IFF Message-ID: <4701@cbmvax.UUCP> Date: 12 Sep 88 04:05:28 GMT References: <7066@well.UUCP> Reply-To: jesup@cbmvax.UUCP (Randell Jesup) Organization: Commodore Technology, West Chester, PA Lines: 18 In article <7066@well.UUCP> shf@well.UUCP (Stuart H. Ferguson) writes: >When writing IFF files, it's important to know if the file you're >writing to is "seekable," that is, the file can be randomly accessed. >Disk files are seekable, but pipes may not be. So the question is, >given a DOS FileHandle (or filename or something) is there a way to tell >if the file is seekable? The only solution at the time being is to attempt a Seek(). It should return an error if it is not supported. >Also, what happens if you try to seek on a pipe? An error? A Guru? Or >does it work sometimes and not others? Any proper pipe returns an error (probably ERROR_ACTION_NOT_KNOWN), but you should check for any error. -- Randell Jesup, Commodore Engineering {uunet|rutgers|allegra}!cbmvax!jesup