Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6700819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:51:36+00:00 2026-05-26T06:51:36+00:00

BTW, I’m new at Visual C#. I’ve already got the .txt file to upload,

  • 0

BTW, I’m new at Visual C#.

I’ve already got the .txt file to upload, but after I get more familiar with Visual C#, my ultimate goal is to upload a .txt file into memory, read it, parse certain parts of data strings on it, and print the data onto the webpage.

I’ve been looking up and down the web (maybe I should learn more before I say I can’t find anything I can’t understand), but I’ve noticed on StackOverflow, the more specific you are, the more of a detailed answer you’re going to get.

I also noticed this question could be filed under a “show me teh codez”. As I am learning all this, instead of “show me teh codez”, I would perfer pointers in which direction I should go and how I should approach this.

Content in the .txt file

_______________________________
.RES B7=121
.RES C12=554
.RES VMAX=4.7μV
_______________________________

It goes on like this for about another 50 or .RES’s. I want to parse these under a while loop, but if there is a more efficient way to do so let me know.

What I want to do is parse the value before the “=” into a label, minus the “.RES ” (Don’t forget the space after it); and the value after the “=” into a textbox, all from a clk_btn event (in VS2010 Express, click on the button you wish to put it under in the design view and up pops the handler in the C# for it).

Remember, this is all from an uploaded text file. The file is uploaded directly into VS2010 Express’ default “WebApplication1” Folder on my desktop. Again, prefer not to “show me teh codez”, but give me pointers. Thanks folks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:51:37+00:00Added an answer on May 26, 2026 at 6:51 am

    If all lines start with “.RES ” you can use Substring to remove those. After that you could split the string on the “=” to get two tokens. One for the label and one for the text box. Create a label and set the appropriate value to the first of the two tokens. Create a textbox and set the appropriate property with the value of the second token. Add them both to the control collection of the parent control.

    (Code omitted due to the explicit wish of not being shown the code)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to persevere, I did the helloWorld tutorial, very impressive btw but I'm
For example (I'm using Korean IME btw) can I get 태우다 from sending xodnek
This hasn't got anything to do with paperclip, btw. I've upgraded to rails 3.2
I have an app that automatically starts a few seconds delayed after boot. BTW:
I started using Flash CS5 (and it sucks btw, but that's not my issue
I wrote a quick and dirty function to compare file contents (BTW, I have
Is it possible to view part of the file at a time? BTW I
Hope you can help... Executing the below powershell (I'm a newbie btw) to get
btw i am just learning so bear with me ive got all my code
I edited the question after David Hanak's answer (thanks btw!). He helped with the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.