OpenBlockFile

Opens a block file.

Synopsis

int32 OpenBlockFile (char *name, BlockFilePtr bf)

Description

Opens the specified block file for reading. OpenBlockFile() calls OpenDiskFile() directly to open the specified file. OpenBlockFile() calls DoIO() directly to determine the status and size of the block file. OpenBlockFile() will not return until DoIO() completes.

Arguments

name
Name of the block file.
bf
Pointer to the block file.

Return Value

Value
Error Condition
0
None
(Portfolio error code)
OpenDiskFile() or CreateItem() failed
See "Error Messages" in the 3DO Portfolio Reference Manual for a listing of error messages returned by OpenDiskFile() or CreateItem().

Associated Files

BlockFile.h

See Also

DoIO OpenDiskFile