From MCMLXXIX@VERT/MDJ to Deuce on Wed Sep 15 17:13:28 2010
I'm having trouble with binary files.
Really, all I want to do is be able to open up a binary ascii picture, load its contents into a string, and write them back out to another file, but it's getting corrupted along the way (mostly because I didnt plan for this and was just doing readAll() and writeAll()..which works for everything else)
I remember a while back we talked about adding a save() method to the Graphic() object, but that's not really where I'm going with this, because this should work on regular text (.INI, .DOC, etc..) files as well.
My question is: is there a way to read/write files in binary mode without having to know what they are?
If you have a few minutes to help me out I'd appreciate it.
thx
---
■ Synchronet ■ The BRoKEN BuBBLE (MDJ.ATH.CX)
From MCMLXXIX@VERT/MDJ to Deuce on Thu Sep 16 13:47:36 2010
Re: graphic.js
By: MCMLXXIX to Deuce on Wed Sep 15 2010 17:13:28
I'm having trouble with binary files.
Really, all I want to do is be able to open up a binary ascii picture, load contents into a string, and write them back out to another file, but it's getting corrupted along the way (mostly because I didnt plan for this and wa just doing readAll() and writeAll()..which works for everything else)
I remember a while back we talked about adding a save() method to the Graphi object, but that's not really where I'm going with this, because this should work on regular text (.INI, .DOC, etc..) files as well.
My question is: is there a way to read/write files in binary mode without having to know what they are?
If you have a few minutes to help me out I'd appreciate it.
thx
nevermind.. got it.
---
■ Synchronet ■ The BRoKEN BuBBLE (MDJ.ATH.CX)
Who's Online
Recent Visitors
Godfather
Thu May 21 09:34:48 2026
from
Underground, Us
via
Telnet
Gullytaucher
Sun Feb 22 07:08:12 2026
from
Traunreut, Germany
via
Telnet
Gullytaucher
Sun Feb 22 06:46:12 2026
from
Traunreut, Germany
via
Telnet
Bishop
Sat Feb 14 20:00:36 2026
from
Philadelphia
via
Telnet