while(feof(fp1)==0) { // ** This is not legal code but shows what I'm trying to achieve here! ** oneByteASCII=(value of byte at pointer 'oneByte'); // Write the byte fwrite(&oneByte,1,1,fp2); // Read next byte fread(&oneByte,1,1,fp1); } I don't have any idea what are you trying to do in this loop - it reads an input file and write the same data to the output file, and you don't do anything with the ascii values :-) Describe what are you trying to do, maybe Cocoa can do most of the work for you.
while(feof(fp1)==0) { // ** This is not legal code but shows what I'm trying to achieve here! ** oneByteASCII=(value of byte at pointer 'oneByte'); // Write the byte fwrite(&oneByte,1,1,fp2); // Read next byte fread(&oneByte,1,1,fp1); }
while(feof(fp1)==0)
// Write the byte fwrite(&oneByte,1,1,fp2);
// Read next byte fread(&oneByte,1,1,fp1); }