GameInfoWrite Method (Stream) |
Writes the game info to the specified stream
Namespace:
Zyrenth.Zora
Assembly:
ZoraSharp (in ZoraSharp.dll) Version: 2.3
Syntaxpublic void Write(
Stream stream
)
Public Sub Write (
stream As Stream
)
Parameters
- stream
- Type: System.IOStream
The stream to write to
Examples
This example demonstrates creating a .zora save file from a
GameInfo
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.
GameInfo info = new GameInfo();
string file = @"C:\Users\Link\Documents\my_game.zora";
using (FileStream outFile = File.Create(file))
{
info.Write(fileStream);
}
See Also