I am using sdk 3.5.
Before I open a file, I try to check whether the file
exsit in my system
---
fileHandle = FileOpen(0, "game0", CreatorId,
CreatorId, fileModeReadOnly, NULL);
if(FileError(fileHandle) == 0)
{
// file exsit !
}
---
I try to open a file that has NOT been created on my
system.
However, when my emulator execute error checking
statement
FileError(fileHandle)
it will complain that fileHandle is pointing to a
unallocated chunk of memory.
What is the correct way to check whether the file had
been created before
reading it ?
Thank you.
regards
yccheok
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/