Lesnikowski.Pawel.Mail.Pop3.Attachment.SaveToFile C# (CSharp) Method

SaveToFile() public method

public SaveToFile ( string fileName ) : void
fileName string
return void
        public void SaveToFile(string fileName)
        {
            if (this.isRealAttachment==false)
                return;

            FileStream fs=File.Create(fileName);
            fs.Write(data,0,data.Length);
            fs.Close();
        }