Here is my complete code:
---------------------------------------------------
<SCRIPT LANGUAGE="VBScript">
Sub btnGo_Click()
Dim objFSO, objTextFile, sRead, sReadLine, sReadAll,theCount
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set objFSO = CreateObject("Scripting.FileSystemObject"
' Open file for reading.
Set objTextFile = objFSO.OpenTextFile("
ForReading)
Do While objTextFile.AtEndOfStream = False
sReadLine = objTextFile.ReadLine
WhereColon = InStr(1, sReadLine, ":"

Select Case Left(sReadLine, WhereColon - 1)
Case Cstr("TieRate"

Default = Right(sReadLine, Len(sReadLine) - WhereColon)
Exit Do
Case Else
Default = "Error reading config"
End Select
Loop
msgbox Int(Default)
objTextFile.Close
End Sub
</script>
---------------------------------------------------
I get an error meassage 'bad file name or number'. Anything obvious that I am doing wrong?