R
rr
Hi,
i have to write a file composed of n packets of a given length.
I need to write this file writing every packet when i get it, knowing its
number and length.
I mean:
packet #0 -length 100 starting from position 1
packet #5 -length 100 starting from position 501
packet #3 -length 100 starting from position 301 ......and so on.
and when the last packet come write down to hard disk.
Please any example on how to write data to a given address in a file?Is it
better to use a filestream or first memorystream and record the file when
the memorystream is full?Mmmmh little confused......
Thanks for your help.
rr
i have to write a file composed of n packets of a given length.
I need to write this file writing every packet when i get it, knowing its
number and length.
I mean:
packet #0 -length 100 starting from position 1
packet #5 -length 100 starting from position 501
packet #3 -length 100 starting from position 301 ......and so on.
and when the last packet come write down to hard disk.
Please any example on how to write data to a given address in a file?Is it
better to use a filestream or first memorystream and record the file when
the memorystream is full?Mmmmh little confused......

Thanks for your help.
rr