Hi all I'm having trouble writing a program that will record the frequency of how often a random number appears.
I'm using visual studio 2017 and c#
I have a file that contains the frequency
434
343
454
454
& then I've displayed the file in a list box like this
1 434
2 343
3 454
4 454
now I'm stuck on how to change data from the file so that the corresponding line increments by 1 when a number appears
Is their a function inside c# to allow one to go to a specific line in a text file then increase it's value by one or maybe go to a specific line in the listbox.
e.g. if 3 appears I want to go to line 3 and increase the number by 1.
I don't necessarily want anyone to write out the code for me, I would just love a pointer in the right direction