here is the question:
5. Write a basic program that allows the user to write names to a text file and read from the text file and displaying them on the screen.
string filename;
StreamReader outputFile = new StreamReader("c:\\PriceList.txt");
// Read the first item.
filename = outputFile.ReadLine();
// If an item was read, display it and read the remaining items.
while (filename != null)
{
Console.WriteLine(filename);
filename = outputFile.ReadLine();
}
outputFile.Close();
shows up error!!! dont knwo what to dio!! any clues???