System.Globalization.Localization.ToFile C# (CSharp) Method

ToFile() public method

Writes the contents of this Localization to the specified .po file.
public ToFile ( string filepath ) : void
filepath string
return void
        public void ToFile(string filepath)
        {
            using (StreamWriter writer = new StreamWriter(filepath, false))
            {
                foreach (Message msg in Messages.Values)
                {
                    writer.Write(msg.ToPOBlock());
                }
                writer.Close();
            }
        }