I am not very familiar with writing and reader files yet, so I'm having a tough time figuring this out.
Using StreamWriter, I'm writing the following to a .text file:
UpgradePointsTotalAmount = 5250
Now I need to retrieve the number only, by first checking if "UpgradePointsTotalAmount" exists, and then returning its value.
How would I do that using StreamReader?
Thanks in advance for your time! Stephane
asked Sep 03 '11 at 07:21 PM
Try this out:
I wrote this code by adapting the example from this site: http://www.dotnetperls.com/get-numbers-from-string
answered Sep 03 '11 at 08:44 PM