Export (0) Print
Expand All

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)

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.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show:
© 2014 Microsoft