Click or drag to resize

GameInfoWrite Method (Stream)

Writes the game info to the specified stream

Namespace:  Zyrenth.Zora
Assembly:  ZoraSharp (in ZoraSharp.dll) Version: 2.3
Syntax
public void Write(
	Stream stream
)

Parameters

stream
Type: System.IOStream
The stream to write to
Examples
This example demonstrates creating a .zora save file from aGameInfo object. If you have access to the file name you will be saving to, as in this example, you should consider using the Write(String) method instead.
C#
GameInfo info = new GameInfo();
string file = @"C:\Users\Link\Documents\my_game.zora";
using (FileStream outFile = File.Create(file))
{
    info.Write(fileStream);
}
See Also