from Spreadsheet to Binary

hello

i’m looking to convert a spreadsheets to binary , anyone know a good tutorial?

What do you mean by ‘binary’? What Format do you want to store the ‘spreadsheet’ in? I believe you are looking for a way to store the structure you read from a spreadsheet (as per your previous post) into memory back to persistant storage in your own format. Since you say ‘binary’, I’m guessing you don’t want to save the data in human-readable form (e.g. JSON, CSV), but into a propriety format that requires less conversion, but is also less simple to maintain.

There is no ‘binary’ Standard, anything goes and as long as it’s convenient for you and you can read it back, it’s ok. You can, for example, save an array of floats to file, by taking the memory occupied by the array, or any other structure, and write it so file by using the FileStream class. You then can do the reverse by allocating an emptry structure and reading the file date back into memory.

thank’s you for your help!

i’m actually looking for storeit into byte[ ] then save a binary data that will be read during runtime…

thank’s you, i still know ho to read and store into a byte[ ] the problem is how to save it properly and read it during runtime

Where do you want to save it? If it’s to disk, just use BinaryWriter and BinaryReader.

1 Like

thank’s i’ll try with it!