🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15868

Re: Please Some Advice On Random access filing

#15868
From: Wayne A. King
Date: Wed, 11 Jun 2003 00:26
35 lines
2127 bytes
On Sun, 8 Jun 2003 09:33:45 +0100, "CapStick" <lol@ljones81.fsnet.co.uk> wrote:

>Apoligies In Advance For the confusing Scope Of this Question.

Warranted, and accepted. ;-)

>I want to create some files containing fielded (Columnar) Data.

Not quite sure what you mean by "Columnar" data.
A file is a contiguous stream of bits/bytes. It is linear,
not multi-dimensioned. 

>One of the things i would like to do is vary the amount of columns in
>different files at run time.

Sort of like "OCCURS DEPENDING ON" in COBOL?

>Any pointers to a good Example of  handling, delimiting and filing mixed
>data would be appreciated .

Personally, I find your problem description too vague and general
to permit offering specific suggestions. Perhaps a sample of data
would help?

I presume you've considered the use of structs? They can contain
a field which indicates which members are valid for each object.

You might get some ideas from browsing the file handling routines
in the SNIPPETS collection:
http://www.eti.pg.gda.pl/KATEDRY/kecs/lab-cpp/snippets/

--
Wayne A. King 
(ba994@torfree.net, wayne.king@ablelink.org, 
 waking@idirect.com, Wayne_A_King@compuserve.com)
Technical Details
Message-ID: <3ee67736.1380155@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!feedwest.aleron.net!aleron.net!news.linkpendium.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ee2f46d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,7ef77ca263716a7e
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-10 17:52:02 PST
From: waking@idirect.com (Wayne A. King)
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Please Some Advice On Random access filing
Date: Wed, 11 Jun 2003 00:26:41 GMT
Message-ID: <3ee67736.1380155@newsgroups.borland.com>
References: <3ee2f46d@newsgroups.borland.com>
X-Newsreader: Forte Free Agent 1.21/16.243
NNTP-Posting-Host: 216.154.2.244
X-Trace: newsgroups.borland.com 1055291301 216.154.2.244 (10 Jun 2003 17:28:21 -0700)
Lines: 35
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!feedwest.aleron.net!aleron.net!news.linkpendium.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail