Multi SaveFile in c#

Mar 31 2014 4:33 PM
SaveFileDialog savedialog = new SaveFileDialog();
savedialog.Filter = "TextFile (*.txt)|*.txt|DocumentFil (*.doc)|*.doc|HTMLFile (*.html)|*.Html|ExcelFile (*.xla)|*.xla|AllFile (*.*)|*.*";
savedialog.ShowDialog();
if (savedialog.ShowDialog() == DialogResult.OK)
{
for (int i = 0; i < 5; i++)
{
string name = savedialog.FileName;

File.WriteAllText(name+i.ToString(), "test");
}
}
 
 
how save for example 5 file in c# 
 

Answers (1)