Not necessarily, if you are sourcing the information you have used to come to your own conclusion then that isn't plagiarism, however if you just copy paste completely and use it as your own work then yes it is plagiarism. <span />
Answer:
See explaination for program code
Explanation:
code below
using System;
using System.IO;
namespace ReadAndDisplayFileCOnsole
{
class Program
{
static void Main(string[] args)
{
using (StreamReader reader = new StreamReader("D:\\datafile.txt"))
{
while (true)
{
string line = reader.ReadLine();
if (line == null)
{
break;
}
Console.WriteLine(line);
}
reader.Close();
Console.Read();
}
}
}
}