writing ansi characters and strings to a binary file.
I just can't seem to get it to work.
I have an array of data that I want to write sequentially to a file that I can later load using Graphic.js. Is there a trick to using the binary file methods? base_64 conversion?
Re: Binary Files
By: MCMLXXIX to All on Wed May 14 2008 08:14 pm
writing ansi characters and strings to a binary file.
I just can't seem to get it to work.
I have an array of data that I want to write sequentially to a file that can later load using Graphic.js. Is there a trick to using the binary fil methods? base_64 conversion?
There are many many tricks! The best thing would be to add a save method to the Graphic class and email it to me so I can include it in CVS. :-)
You can have a look at how Graphic_load() does it (one byte at a time using binary IO) for hints on how to do the save.
Also, TheDraw will save in this format (it's called "RAW" or "C" or somethin like that)
| Sysop: | Eric Oulashin |
|---|---|
| Location: | Beaverton, Oregon, USA |
| Users: | 104 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 19:59:48 |
| Calls: | 7,088 |
| Calls today: | 7 |
| Files: | 9,223 |
| D/L today: |
182 files (25,958K bytes) |
| Messages: | 374,157 |