-
May 2nd, 2018, 06:53 PM
#1
Thread Starter
New Member
Count of a letter in a file *HELP*
Hi, new here and new to coding.
I need some coding help with the following:
Instructions
Button event
A masked textbox to input a letter
A dialog box to open the text file
Use exception handling
read in via streamreader
Output to a textbox:
There are 2000 A's in the states.txt file.
I'm stuck, I don't know what to do. This is all I know:
For 0 to Stringline.length - 1
If "ABCDabcdABCD".Substring(0,1) = 'letter' Then
counter = counter + 1
Do loop
States.txt
-
May 2nd, 2018, 07:17 PM
#2
Re: Count of a letter in a file *HELP*
Based on the wording of the assignment and the code snippet you posted, this appears to be a VB.NET related question, so I will ask it to be moved to the VB.NET forum.
You are likely going to need to show more code than that to get assistance to demonstrate at least a cursory understanding of the concepts involved with the assignment. No one here seems too keen to just do other people's homework for them.
-
May 2nd, 2018, 07:26 PM
#3
Thread Starter
New Member
Re: Count of a letter in a file *HELP*
Originally Posted by OptionBase1
You are likely going to need to show more code than that to get assistance to demonstrate at least a cursory understanding of the concepts involved with the assignment. No one here seems too keen to just do other people's homework for them.
Maybe I'll get lucky...
-
May 2nd, 2018, 09:01 PM
#4
Re: Count of a letter in a file *HELP*
-
May 2nd, 2018, 11:52 PM
#5
Re: Count of a letter in a file *HELP*
I suggest that you review the notes and/or text book for the class because you're not going to be asked to use those things without having been introduced to them. Asking strangers on the internet to cheat for you is not a good look. If you show that you have made an effort and can explain exactly where you're stuck, that will likely get you far more interested parties.
-
May 3rd, 2018, 01:05 AM
#6
Addicted Member
Re: Count of a letter in a file *HELP*
did you search with google all the instructions preceded by vb.net ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|