I'm starting a new project, and trying to come up with the best way to store some data.
I'm processing large binary files. These are print-streams. Each file will contain many documents, and each document will contain a differing number of pages. At some point I'll need to re-sequence documents and/or pages. That's no problem.
I need a class that contains lots of information about this file, including the
1) Byte offset of each document, plus it's sequence in the file. I need to know where document 1 starts, document 16, etc.
2) Byte offset of each page, and its sequence within a document.
What I really need is an ISAM structure, does C# have one?
Barring that, what controls/types would you use to store this data?
I thought of having two dictionaries, one for the documents, and one for the pages. The dictionaries would be <string,int>, with the string being sequence number. For the pages, that would be a sequence number containing the document sequence number:
"0000000001-0000000001" = page 1 of document 1.
I also need to be able to serialize/de-serialize this data.
Are dictionaries the ticket?
Thomas D. Greer
I'm processing large binary files. These are print-streams. Each file will contain many documents, and each document will contain a differing number of pages. At some point I'll need to re-sequence documents and/or pages. That's no problem.
I need a class that contains lots of information about this file, including the
1) Byte offset of each document, plus it's sequence in the file. I need to know where document 1 starts, document 16, etc.
2) Byte offset of each page, and its sequence within a document.
What I really need is an ISAM structure, does C# have one?
Barring that, what controls/types would you use to store this data?
I thought of having two dictionaries, one for the documents, and one for the pages. The dictionaries would be <string,int>, with the string being sequence number. For the pages, that would be a sequence number containing the document sequence number:
"0000000001-0000000001" = page 1 of document 1.
I also need to be able to serialize/de-serialize this data.
Are dictionaries the ticket?
Thomas D. Greer