Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Misc > Typed-file hold...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 5985 of 6157
Post > Topic >>

Typed-file holding extra data beside records?

by al <adrian.livischi@[EMAIL PROTECTED] > Feb 16, 2008 at 02:57 PM

Hi,
I need to clarify something in my mind about typed files and their
content.
I understand that a typed file can contain an (unlimited?) number of
records with a single given structure.  But since records are just a
way of interpreting a sequence of bytes, isn't it possible to have
some other data in the same file, e.g. in front of all the records?

What I'd like to achieve is having 2 or more sections in a single
file:  a first section with some "name=value" information (INI like),
and another section consisting of my array of records.  And why not,
some more sections with records of different type each...

For my project, I am trying to keep all the data in a single file --
IMO splitting data across several files like DBase tables, is a bad
thing to do.  In general, single data-file improves the security,
safety, ****tability (USB), simplicity/elegance in programming, and
also demands less ressources.

A possible solution (I have yet to figure out the coding) would be
manipulating the Seek function's output.  Or maybe to split the file's
content into 2 streams, one for each section?   Or maybe "stitching"
several memory streams together before saving them to disk?

If anyone has an opinion, experience or hopefully some sample code for
that, it will be much appreciated !
 




 9 Posts in Topic:
Typed-file holding extra data beside records?
al <adrian.livischi@[E  2008-02-16 14:57:48 
Re: Typed-file holding extra data beside records?
Hans-Peter Diettrich <  2008-02-17 08:37:46 
Re: Typed-file holding extra data beside records?
"alanglloyd@[EMAIL P  2008-02-17 03:29:23 
Re: Typed-file holding extra data beside records?
Bart <broersma.juda_AN  2008-02-17 13:20:22 
Re: Typed-file holding extra data beside records?
"Maarten Wiltink&quo  2008-02-17 13:34:58 
Re: Typed-file holding extra data beside records?
al <adrian.livischi@[E  2008-02-17 08:45:41 
Re: Typed-file holding extra data beside records?
al <adrian.livischi@[E  2008-02-17 09:16:56 
Re: Typed-file holding extra data beside records?
Jamie <jamie_ka1lpa_no  2008-02-17 13:53:57 
Re: Typed-file holding extra data beside records?
"alanglloyd@[EMAIL P  2008-02-17 15:41:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 11:13:09 CDT 2008.