My streamReader is reading my textfile from a specific location but it only reads 9 lines instead of 10 lines , the textfile consists of 10 lines , what gone wrong here? Its omitting the first line and display only the rest of the 9 lines.
Here is my code :
using (StreamReader reader = File.OpenText(Server.MapPath(@daoWordPuzzle.GetfileURL()))) { foreach (var line in reader.ReadLine()) { Response.Write(reader.ReadLine() + " <br />"); } }