stringWithContentsOfFile static method

ObjCObjectBase? stringWithContentsOfFile(
  1. NSString path
)

stringWithContentsOfFile:

Implementation

static objc.ObjCObjectBase? stringWithContentsOfFile(objc.NSString path) {
  objc.checkOsVersionInternal(
    'NSString.stringWithContentsOfFile:',
    iOS: (false, (2, 0, 0)),
    macOS: (false, (10, 0, 0)),
  );
  final _ret = _objc_msgSend_1sotr3r(
    _class_NSString,
    _sel_stringWithContentsOfFile_,
    path.ref.pointer,
  );
  return _ret.address == 0
      ? null
      : objc.ObjCObjectBase(_ret, retain: true, release: true);
}