Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!ISUMVS.BITNET!GA.NES From: GA.NES@ISUMVS.BITNET (SCHUESSLER) Newsgroups: comp.sys.apple Subject: Appearance of control characters during string manipulations Message-ID: <8802212019.aa25040@SMOKE.BRL.ARPA> Date: 22 Feb 88 01:20:57 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 19 HELP!! I'm having a terrible problem with my Apple IIe. I wrote a simple program to convert binary files into a text files containing the hex digits, when I discovered that in lines 42-47 of some files, there was nothing but a long series of control characters. There was no pattern to which files it occurred in, but always within that line range. There were some mysterious power problems earlier today, but when I ran the program on someone else's IIe, I got somewhat the same result. I've come to the conclusion that it must be the program. My algorithm loads each binary file, PEEKS out the values, and converts the integer values into numbers between 0-15, and with a series of IF statements converts to char values from '0'...'F'. I convert three files, and attempt to put the nth line of each file together in one string var. Each line of any file is only 22 characters long, so there's plenty of room to put three files next to each other. The error occurs after it has done 52*22*3 concatenations of chars, and 42 concatenations of strings 22 chars long. It couldn't be just a hidden control char .......? Thanks in advance, Niko Schuessler