I am following a tutorial online to read a simple text file line by line in c# but I get this error that I can't wrap my head around.
This is my simple code:
StreamReader reader = new StreamReader("hello.txt");
but this gives me an error:
Argument 1: cannot convert from 'string' to 'System.IO.Stream'
This article on msdn uses the same code and there it works, what am I doing wrong?