Click to See Complete Forum and Search --> : Reading multiple files one after another...


tij
March 6th, 2009, 07:40 AM
Hi all.

In C#, are there any ready-made tools to read binary data from multiple files - one after another?

One real life example to descibe the situation a little bit: a video player that supports playing video from splitted files so that when the first file is read, it starts to read the second and so on. Also moving the cursor - to the left or right, fast or slow - is implemented and done efficiently.

You see, I have to read binary data from files and display a portion of it on screen ("playback") and there is also a scroll bar so that the visible portion can be moved from left to right.

I have studied a little bit that MemoryMappedFile but it seems that it isn't going to help me alot. Or is there a way to map multiple files so that Windows takes care of the file handling?

Can someone recommend an existing algorithmn for this or is this just something you have to "get your hands dirty with" and do it yourself. I would imagine that this is implemented - in some way - in different softwares nowadays.

I have designed this pretty far but if there is a ready-made tool in C# (or C/C++) it would help alot and speed things up.

Regards,

-J-

tij
April 23rd, 2009, 06:08 AM
Anyone?