StorageContainer.OpenFile Method (String, FileMode)

Opens a file in the StorageContainer.

Namespace: Microsoft.Xna.Framework.Storage
Assembly: Microsoft.Xna.Framework.Storage (in microsoft.xna.framework.storage.dll)

public Stream OpenFile (
         string file,
         FileMode fileMode
)

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.

Return Value

An unshared file with read/write access that is opened in the specified mode.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show: