HI everybody;
I have problem about selecting files in my main file. I have to find
the files whose ending INF. What Can I do?Can anybody help me?
using System;
using System.Collecti ons.Generic;
using System.Text;
using System.IO;
namespace ConsoleApplicat ion1
{
public class FileClass
{
public static void Main(string[] args)
{
ReadFromFile("c :/a.txt");
}
static void ReadFromFile(st ring filename)
{
StreamReader SR;
string S;
SR = File.OpenText(f ilename);
S = SR.ReadLine();
while (S != null)
{
Console.WriteLi ne(S);
S = SR.ReadLine();
}
SR.Close();
}
}
}