• Binary Files

    From MCMLXXIX@VERT/MDJ to All on Wed May 14 20:14:32 2008
    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? ããã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã
  • From Deuce@VERT/SYNCNIX to MCMLXXIX on Wed May 14 21:29:31 2008
    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 Iã > can later load using Graphic.js. Is there a trick to using the binary fileã > 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 somethingãlike that)ãã--- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From MCMLXXIX@VERT/MDJ to Deuce on Thu May 15 16:51:49 2008
    Re: Binary Filesã By: Deuce to MCMLXXIX on Wed May 14 2008 21:29:31ãã > 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)ã > ããsent... It's a mediocre solution, at best.. but it's what worked for me.. ãgraphic_load() was useless, as far as helping get it done. I don't think myãfunction handles attributes.ããã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã