I'm trying to read from a file inside a the current users appdata folder in C# but i'm still learning so I have this
int counter = 0;
string line;
// Read the file and display it line by line.
System.IO.StreamReader file =
new System.IO.StreamReader("c:\\test.txt");
while ((line = file.ReadLine()) != null)
{
Console.WriteLine(line);
counter++;
}
file.Close();
// Suspend the screen.
Console.ReadLine();
But i don't know what to type to make sure it's always the current user.