So basically we'll just say that, for example, the user inputs 'As' and it is set to variable 'A'.
I have an input .txt file that has a list of these characters (it's for figuring out molecular geometry) so somewhere in the text file it says
'Arsenic As 5'
I want to have my program run through the input file, looking for the contents of string 'A,' retrieve the 5, and assign it to another variable, 'v.' How could i go about that?