%@ LANGUAGE="VBSCRIPT" %> <%Response.buffer = true%> <% 'If Session("Username") = "" Then Response.Redirect("Password.asp") %>
<%
Set FileObject = Server.CreateObject("Scripting.FileSystemObject") 'Create the file object
If FileObject.FileExists(Server.Mappath("ptmstat.88")) Then 'copy the file to the stats directory and delete the original in the FTP directory
'##### COMMENTED OUT FOR ARCHIVING - No need to copy files from ftp directory #####
'FileObject.CopyFile Server.Mappath("..\ftp\ptmstat.88"), Server.MapPath("ptmstat.88"), True
Set FileIn = FileObject.OpenTextFile(Server.MapPath("ptmstat.88")) 'open the file
While NOT FileIn.AtEndOfStream 'Loop and read 'til the End of FIle
TextLine = FileIn.readline 'Read in One Line
' If InStr (Textline, "FISH PIER")>0 Then 'Do not display Copywrite line
' Else
' TextLine = REPLACE(TextLine, " ", " ") 'Replace al the spaces with HTML spaces
TextLine = REPLACE(TextLine, "-", "/") 'Replaced the hyphen because it caused a line break
If InStr(Textline, "BOURNE")>0 Then 'Look for the "Title" line of each team and replace it with a NAME anchor
Textline = REPLACE(Textline, "BOURNE", "Bourne Braves")
End If
If InStr(Textline, "BREWSTER")>0 Then
Textline = REPLACE(Textline, "BREWSTER", "Brewster Whitecaps
")
End If
If InStr(Textline, "CHATHAM")>0 Then
Textline = REPLACE(Textline, "CHATHAM", "Chatham Athletics
")
End If
If InStr(Textline, "COTUIT")>0 Then
Textline = REPLACE(Textline, "COTUIT", "Cotuit Kettleers
")
End If
If InStr(Textline, "FALMOUTH")>0 Then
Textline = REPLACE(Textline, "FALMOUTH", "Falmouth Commodores
")
End If
If InStr(Textline, "HARWICH")>0 Then
Textline = REPLACE(Textline, "HARWICH", "Harwich Mariners
")
End If
If InStr(Textline, "HYANNIS")>0 Then
Textline = REPLACE(Textline, "HYANNIS", "Hyannis Mets
")
End If
If InStr(Textline, "ORLEANS")>0 Then
Textline = REPLACE(Textline, "ORLEANS", "Orleans Cardinals
")
End If
If InStr(Textline, "WAREHAM")>0 Then
Textline = REPLACE(Textline, "WAREHAM", "Wareham Gatemen
")
End If
If InStr(Textline, "YARMOUTH/DENNIS")>0 Then
Textline = REPLACE(Textline, "YARMOUTH/DENNIS", "Yarmouth-Dennis Red Sox
")
End If
Response.Write(TextLine & "
") 'Write the text line to the screen, get another one
' End If
WEnd
Else%>
Playoff Team Stats will be available
when the 2003 Playoffs are underway.
<%End If%>