@@ -964,20 +964,20 @@ fileSize = [[OFFileManager defaultManager] sizeOfFileAtPath: path]; } @catch (OFStatItemFailedException *e) { @throw [OFOpenItemFailedException exceptionWithPath: path - mode: @"rb" + mode: @"r" errNo: errno]; } if (sizeof(of_offset_t) > sizeof(size_t) && fileSize > (of_offset_t)SIZE_MAX) @throw [OFOutOfRangeException exception]; file = [[OFFile alloc] initWithPath: path - mode: @"rb"]; + mode: @"r"]; @try { tmp = [self allocMemoryWithSize: (size_t)fileSize]; [file readIntoBuffer: tmp @@ -2766,11 +2766,11 @@ { void *pool = objc_autoreleasePoolPush(); OFFile *file; file = [OFFile fileWithPath: path - mode: @"wb"]; + mode: @"w"]; [file writeString: self encoding: encoding]; objc_autoreleasePoolPop(pool); }