[posted and mailed] Simon Williams <*email*@*luddite.ca*> wrote in news:2191435.VTVERYDM@news.telusplanet.net: > My previous technique was to PEEK each byte of the file and then POKE > it into ADDRESS - $2C, but that was very slow. conjecture code, i.e. not tested, mom's playing on my GS right now. 5 INPUT " Enter file name to load";FN$ 10 ?chr$(4)"bload ";FN$;",a$2000,b$2c" : REM load file at byte $2C 20 FL = PEEK(48840) + 256 * PEEK(48841) -44 : REM $2C = 44 decimal 30 ?chr$(4)"bsave ";fn$;",a$2000,L";FL : REM save shortened file some of the ideas were adapted from http://ground.ecn.uiowa.edu/apple2/MiscInfo/Techinfo/bi.globals [posted and mailed] Simon Williams <*email*@*luddite.ca*> wrote in news:2202331.UIIGEEEN@news.telusplanet.net: > Don't really see why it doesn't work... the PEEKS are correct. Line 10 > works fine in a different routine and so does line 30, but for some > reason they won't play nice together... (and I *have* checked my typing > about a million times) > > Any thoughts? add a line for debugging 25 PRINT "FL = ";FL but looking back at my vintage 1983 3-ring ProDos techninal reference, I used the wrong peek locations... this should work better... 20 FL = PEEK(48857) + 256 * PEEK(48858) -44 : REM $2C = 44 decimal or 20 FL = PEEK(48859) + 256 * PEEK(48860) -44 : REM $2C = 44 decimal officially Number of bytes to be read/written and returned # of bytes read/written respectively they are usually the same. Simon Williams <*email*@*luddite.ca*> wrote in news:2191435.VTVERYDM@news.telusplanet.net: > Well, I'm basically trying to figure out how to strip the headers off of > unforked WAV files. I figured the most straight-forward way was to > BLOAD the file and then BSAVE only the audio data portion, which is from > $2C after the file start. There is also a program caled The Stripper that was (and is) on the old AOL support area. I emailed it to Simon already. Subject: The Stripper (Mac headers) SHK Author: Joseph Schober Uploaded By: AFA JoeyS Date: 07/21/90 A utility that allows you to remove headers from files downloaded from online services. You can remove... - Mac AO headers [automatically]. - MacBinary headers [automatically]. - Any number of bytes (1-255) from the top of the file, manually specified. Really useful for those loose transfer protocol headers on files. Works on any Apple II. Unpack with ShrinkIt. Docs included.