using System;
using System.Globalization;
using System.IO;
class MainClass
{
public static void Main()
{
CultureInfo ci = new CultureInfo("nl-BE");
FileStream outStream = File.Create("CultureInfo.txt");
StreamWriter sw = new StreamWriter(outStream);
sw.WriteLine("Native Name: " + ci.NativeName);
sw.WriteLine("English Name: " + ci.EnglishName);
DateTimeFormatInfo dtfi = ci.DateTimeFormat;
sw.WriteLine("Long date pattern: " + dtfi.LongDatePattern);
NumberFormatInfo nfi = ci.NumberFormat;
sw.WriteLine("Currency symbol: " + nfi.CurrencySymbol);
sw.WriteLine("Decimal seperator: " + nfi.NumberDecimalSeparator);
sw.Flush();
sw.Close();
}
}
|