![]() |
writing byte
Im trying to write some come but it isnt coming along. This is what i have/want:
int[] myIntArray int[] myintArray2 Bitmap myBitmap // All of these have some value(s) // I want to write them to a file using this protocol (byte sizes are fixed): (4 bytes) Size of myIntArray (4 bytes) Position of myIntArray in the file (4 bytes) Size of myIntArray2 (4 bytes) Position of myIntArray2 in the file (4 bytes) Size of myBitmap (4 bytes) Position of myBitmap in the file (lots of bytes, 4 per element) myIntArray (lots of bytes, 4 per element) myIntArray2 (lots of bytes, preferably PNG fromat) myBitmap I'd really apreciate any help |
Re: writing byte
Actually I could not understand what you are looking for.
|
Re: writing byte
:)
I looking for code, to write variables to a file, in the way descripbed above |
Re: writing byte
BinaryWriter will do the job for you.
Here is a simple sample Code: C#
|
| All times are GMT +5.5. The time now is 04:15. |