So, my question is, in the code I have:
#import <Foundation/Foundation.h>
#define kBufSize 128
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSFileHandle *inFile, *outFile;
NSData *buffer;
inFile = [NSFileHandle fileHandleForReadingAtPath:@"testfile"];
if (inFile == nil)
{
NSLog(@"Open of testfile for reading failed!");
return 1;
}
outFile = [NSFileHandle fileHandleWithStandardOutput];
buffer = [inFile readDataOfLength: kBufSize];
while (buffer.length != 0) {
[outFile writeData: buffer];
(buffer = [inFile readDataOfLength: kBufSize]);
}
[inFile closeFile];
[outFile closeFile];
[pool drain];
return 0;}
Do we need to close outFile, since it isn't really a file but the terminal's output? (I should call it outToTerminal or something, I know

)