StorageContainer.OpenFile Method (String, FileMode, FileAccess)
Opens a file in the StorageContainer in the designated mode with the specified read/write access.
Namespace: Microsoft.Xna.Framework.Storage
Assembly: Microsoft.Xna.Framework.Storage (in microsoft.xna.framework.storage.dll)
Syntax
public Stream OpenFile (
string file,
FileMode fileMode,
FileAccess fileAccess
)
Parameters
- file
Type: String
Relative path of the file within the StorageContainer. - fileMode
Type: FileMode
One of the enumeration values that specifies how to open the file. - fileAccess
Type: FileAccess
One of the enumeration values that specifies whether the file is opened with read, write, or read/write access.
Return Value
An unshared file opened in the designated mode with the specified access.
See Also
Reference
StorageContainer Class
StorageContainer Members
Microsoft.Xna.Framework.Storage Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP