Bagikan melalui


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)

Syntax

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.

See Also

Reference

StorageContainer Class
StorageContainer Members
Microsoft.Xna.Framework.Storage Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP