TitleContainer.OpenStream Method

XNA Game Studio 4.0
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)

public static Stream OpenStream (
         string name


The name of the file to open.

Return Value

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

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

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

Community Additions