for some reason no matter how I code this I still can't get it to read the text file. I using visual studio C# windows form application public...
View the step-by-step solution to:

Question

for some reason no matter how I code this I still can't get it to read the text file. I using visual studio C#

windows form application


public partial class Form1 : Form

  {

    public object Debug { get; private set; }


    public Form1()

    {

      InitializeComponent();

    }


    private void Form1_Load(object sender, EventArgs e)

    {

      string path = @"C:LanelleLewisWK2LanelleLewisWK2binDebug";

      StreamReader stream = new StreamReader(path);

      string filedata = stream.ReadToEnd();

      button1.Text = filedata.ToString();

      stream.Close();


      this.listView1.Columns.Add("FirstName", 100, HorizontalAlignment.Left);

      this.listView1.Columns.Add("LastName", 100, HorizontalAlignment.Left);

      this.listView1.Columns.Add("Address", 100, HorizontalAlignment.Left);

      this.listView1.Columns.Add("Age", 100, HorizontalAlignment.Left);

      this.listView1.Columns.Add("GrossMoPay", 100, HorizontalAlignment.Left);

      this.listView1.Columns.Add("DeptID", 100, HorizontalAlignment.Left);

      this.listView1.Columns.Add("DevType", 100, HorizontalAlignment.Left);

      this.listView1.Columns.Add("TaxType", 100, HorizontalAlignment.Left);

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Let our 24/7 Computer Science tutors help you get unstuck! Ask your first question.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors