Jos�,

>> the first line is always filled with a header
>>line, as it be a pdb file. What kind of mistake am I doing here? 

If you create the file on a VFS volume, you don't need the PDB header.  However,
the internal memory doesn't have a real file system at all.  It *only* supports
resource (eg *.prc) and non-resource (eg *.pdb) style databases.  The file
stream functions provide a way to allow programs to pretend they aren't working
with pdb-style records, but in reality they are just encapsulating access and
handling the dirty work of slicing and dicing the data into 4k block "records"
in a pdb style database in internal memory.  It *must* do this because internal
memory *cannot* store a regular filestream in the same way as say a desktop,
simply because it does not have a file system.

>>Is there any other way to save my TXT file without that header?

Store it on a VFS volume, which does have a file system and thus doesn't need to
encapulate the data within a pdb style database.

>>I am trying to write a simple text file (converting PDB to TXT) to send it
>>to another SGDB in a server. 

So why not just read the contents of the file using FileRead() while sending the
data to the other server?  That is the inverse of your FileWrite(), and will
return just the pseudo-filestream data bytes and not any of the associated PDB
structure encapsulation.  Can I assume you are using TCP/IP communications here?

Doug

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to