StreamExtend Cs
StreamExtend Cs
using System.IO;
class Extend
{
public static void Main( string[] args )
{
// create a file for testing
FileStream s = File.Create( "test.txt" );
s.Close();
// read booleans
bool firstBool = read.ReadBoolean();
bool secondBool = read.ReadBoolean();
// read strings
string firstString = read.ReadString();
string secondString = read.ReadString();
Console.WriteLine( "Read the following strings: " +
"\"{0}\", \"{1}\"", firstString, secondString );
} // end Main
} // end class Extend