e.Name.ToLower().EndsWith(filterExtension.ToLower())
string archFileNameT = Path.GetFileNameWithoutExtension(archFile.Name).Remove(0, 9);
char[] chars = new char[archFileNameT.Length];
for (int j = 0; j < archFileNameT.Length; j++)
{
if (archFileNameT[j] == '-')
chars[j] = ' ';
else if (archFileNameT[j] == '_')
chars[j] = ' ';
else if (archFileNameT[j] == '1')
chars[j] = ' ';
else
chars[j] = archFileNameT[j];
}
string archFileName = new string(chars);
archFileName.Trim();
archFileName + (copyAll ? c++.ToString() : "") + ext;
File.Create(outDir.FullName + "\\" + outFileName)
using (Stream sw = File.Create(outDir.FullName + "\\" + outFileName))
{
while (true)
{
int data = sr.ReadByte();
if (data == -1)
break;
sw.WriteByte((byte)data);
}
}
int data = sr.ReadByte();
if (data == -1)
break;
if (!copyAll)
break;
Мне еще рано до студента.