Reading data from a .txt file using C#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Folks,
I have a txt file that has some data that I would like to use in a C# program that I am writing. Is there an example or code snippet that I can look at that shows how to open a file and parse the data. An example of the data is listed below:
1 Arm Hole Circumference Left: 19.761
1 Arm Hole Circumference Right: 21.122
1 Bicep Circumference Left: 12.851
1 Bicep Circumference Right: 13.365
1 Forearm Circumference Left: 10.44
1 Forearm Circumference Right: 10.189
1 Wrist Circumference Left: 7.1036
1 Wrist Circumference Right: 6.537
1 Arm Length Left: 22.749
1 Arm Length Right: 24.094
1 Arm Under Length Left: 16.361
1 Arm Under Length Right: 17.703
In all cases, the number at the end of the line is the one that I am interested in brining into the C# program.
Thanks in advance for your help.
~Vonnie