I want to get all the fixed drives names as a string array to give names for radio buttons..
this is the code i have used..

```
var drvs = System.IO.DriveInfo.GetDrives();
int hdcount = 0;
string[] drivenames;
foreach (var drv in drvs)
{
    if (drv.DriveType == System.IO.DriveType.Fixed)
    {
        drivenames[hdcount] = drv.Name;
        hdcount++;
    }
}

```

But this code does not work.
it says "Error 1 Use of unassigned local variable 'drivenames'"

whats the wrong with my code ? how can i fix this ?