Majid Kamali

Majid Kamali

  • NA
  • 290
  • 255k

My Problem Haven't been solved !!!

Jul 20 2010 5:41 PM
I have a text file with below Format:

John Smith 19 175.7
Jane Smith 18 168.5
.
.
.

that they are first name, last name, age and tall (cm) respectively.

I Created a Class that has 4 fields for those . (string first, string last, int age, float tall)

How Can I Read the file and put them in an instance of my class ?
Please write exact code. I have problem with C# IO  :-(
Thanks.

Answers (6)