static void Main(string[] args)
{
var list = new List<string>();
var DrivepathTxtFile = new FileStream("LocatedPath.txt", FileMode.Open, FileAccess.Read);
StreamReader reader = new StreamReader(DrivepathTxtFile);
string DrivePath;
while ((DrivePath = reader.ReadLine()) != null)
{
list.Add(DrivePath);
}
DriveInfo[] Drives = DriveInfo.GetDrives();
foreach (DriveInfo d in Drives)
{
Console.WriteLine(d.TotalFreeSpace);
Console.ReadLine();
}
static void Main(string[] args)
{
var list = new List<string>();
var DrivepathTxtFile = new FileStream("LocatedPath.txt", FileMode.Open, FileAccess.Read);
StreamReader reader = new StreamReader(DrivepathTxtFile);
string DrivePath;
while ((DrivePath = reader.ReadLine()) != null)
{
list.Add(DrivePath);
}
DriveInfo[] Drives = DriveInfo.GetDrives();
foreach (DriveInfo d in Drives)
{
Console.WriteLine(d.TotalFreeSpace);
Console.ReadLine();
}