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
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,029 |
Nodes: | 17 (1 / 16) |
Uptime: | 66:22:23 |
Calls: | 503,622 |
Calls today: | 6 |
Files: | 137,930 |
D/L today: |
36,522 files (6,774M bytes) |
Messages: | 442,643 |
Posted today: | 1 |