6
Answers

My Problem Haven't been solved !!!

Majid Kamali

Majid Kamali

14y
3.4k
1
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)