Try NSFileHandle.