Returns a string created by reading data from the file named by a given path. (Deprecated in Mac OS X v10.4. Use stringWithContentsOfFile:encoding:error: or stringWithContentsOfFile:usedEncoding:error: instead.)
Original signature is '+ (id)stringWithContentsOfFile:(NSString *)path'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
[ObsoleteAttribute("Deprecated in Mac OS X v10.4. Use stringWithContentsOfFile:encoding:error: or stringWithContentsOfFile:usedEncoding:error: instead.")] public static Id StringWithContentsOfFile( NSString path )
<ObsoleteAttribute("Deprecated in Mac OS X v10.4. Use stringWithContentsOfFile:encoding:error: or stringWithContentsOfFile:usedEncoding:error: instead.")> _ Public Shared Function StringWithContentsOfFile ( _ path As NSString _ ) As Id
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.4. Use stringWithContentsOfFile:encoding:error: or stringWithContentsOfFile:usedEncoding:error: instead.")] public: static Id^ StringWithContentsOfFile( NSString^ path )
Parameters
- path (NSString)
- MISSING
Return Value
[Missing <returns> documentation for "M:Monobjc.Foundation.NSString.StringWithContentsOfFile(Monobjc.Foundation.NSString)"]
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)