TitleContainer.OpenStream Method

Returns a stream to an existing file in the default title storage location.

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

Syntax

public static Stream OpenStream (
         string name
)

Parameters

  • name
    The name of the file to open.

Return Value

The file stream that can be used to read the file's data.

Remarks

The stream returned is read-only. The file to be read must already exist, or this method will fail.

See Also

Reading Game Data from Title Storage

Reference

TitleContainer Class
TitleContainer Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7