--- Chart Phatt <[EMAIL PROTECTED]> wrote: > I need to read XML file inside the palm with FileStream > function.
Is the file > 64KB ? If it is not, then you don't need to use a FileStream. > ... > So, I tried use "pdbmake.exe" utilities to convert any > text file to ".pdb" and upload it. However, I got the > error when I tried to open the file with FileOpen function. > The return error code is "5649" in Decimal or "1604" in Hex. That error is fileErrNotStream, which means the pdb you created is not a FileStream. Allthough file streams are implemented using databases, every database is not a file stream. The docs for pdbmake say, "Text files are embedded with one record per line, zero terminated, while binary files are embedded as a single record, optionally preceded by the length of the original input file." That is not the same as a file stream. What pdbmake creates is a record database. You can open it and read the contents with database manager commands DmOpenDatabaseByTypeCreator(), DmQueryRecord(), etc. __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
