MonobjcMonobjc Documented Class Library
DictionaryWithContentsOfFile Method (path)
NamespacesMonobjc.FoundationNSDictionaryDictionaryWithContentsOfFile(NSString)

Creates and returns a dictionary using the keys and values found in a file specified by a given path.

Original signature is '+ (id)dictionaryWithContentsOfFile:(NSString *)path'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSDictionary DictionaryWithContentsOfFile(
	NSString path
)
Public Shared Function DictionaryWithContentsOfFile ( _
	path As NSString _
) As NSDictionary
public:
static NSDictionary^ DictionaryWithContentsOfFile(
	NSString^ path
)
Parameters
path (NSString)
A full or relative pathname. The file identified by path must contain a string representation of a property list whose root object is a dictionary.
Return Value
A new dictionary that contains the dictionary at path, or nil if there is a file error or if the contents of the file are an invalid representation of a dictionary.
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)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)