Axiom.Core.MeterManager.SaveToFileInternal C# (CSharp) Method

SaveToFileInternal() protected method

protected SaveToFileInternal ( string pathname ) : void
pathname string
return void
		protected void SaveToFileInternal( string pathname )
		{
			FileStream f = new FileStream( pathname, FileMode.Create, FileAccess.Write );
			StreamWriter writer = new StreamWriter( f );
			writer.Write( string.Format( "MeterCount={0}\n", metersById.Count ) );
			foreach ( KeyValuePair<int, TimingMeter> pair in instance.metersById )
			{
				TimingMeter meter = pair.Value;
				writer.Write( string.Format( "{0},{1},{2}\n", meter.title, meter.category, meter.meterId ) );
			}
		}

Usage Example

Beispiel #1
0
 public static void SaveToFile(string pathname)
 {
     instance.SaveToFileInternal(pathname);
 }