using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication2
{
public partial class Form3 : Form
{
public Form3()
{
InitializeComponent();
}
private void Form3_Load(object sender, EventArgs e)
{
string line;
System.IO.StreamReader file =
new System.IO.StreamReader(@"C:\Project Files\MyTestFile.txt");
while ((line = file.ReadLine()) != null)
{
listBox1.Items.Add(line);
}
file.Close();
}
}
}