I need to Load the interest rates for the 7 year, 15 year, and 30 year loans from a file called rates.txt. The file can be viewed at http://www.stevetout.com/rates.txt
I use the following code to read the file, and assign the contents from file to a variable.
Dim oFile As System.IO.File
Dim oRead As System.IO.StreamReader
Dim EntireFile As String
oRead = oFile.OpenText("C:\Documen
ts and Settings\Steve.PORTLAND\My
Documents\Visual Studio Projects\WindowsApplicatio
EntireFile = oRead.ReadToEnd()
I need to read the rate and number of years from the EntireFile string, parse it and compute a monthly payment.
Will somebody please post some code that parses the values from the txt file, and makes them available to my calculator sub?