Results 1 to 4 of 4

Thread: Need some help / advice with reading from streams

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    If your record has fixed size and don't contain any referenced types or pointers then you should be able to read such record back from stream directly into a record structure without any problem.

    Would you mind showing the structure of your records so we can verify that they don't contain any data structure that might cause problems. Besides it will give us opportunity to create a test case using your record structure to help locate your problem.

  2. #2
    one thing you need to know about streams is that they work as huge stacks of data chunks. how you access them, depends on what you drop into. as SilverWarior said, with a fixed size chunk you just need to get or to put chunks one after the other. with variable size you need some kind of info in advance to be able to get/put data chunks as you need them. you can put a longint just before the data chunk, so you know the size before read it. also you can keep an index to where you put things inside the stream.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •