<%@ Language=VBScript %>
<HTML>
<BODY>
<FORM METHOD=POST ACTION="bingo1.asp" id=form1 name=form1>
<INPUT TYPE=text NAME=item><BR>
<INPUT TYPE=SUBMIT VALUE="Click Me" id=SUBMIT1 name=SUBMIT1>
</BODY>
</HTML>
<%@ Language=VBScript %>
<% Option Explicit %>
<%
Dim fso, file, folder
Set fso = CreateObject("Scripting.FileSystemObject")
set folder = fso.CreateFolder("w:\BoSeo")
Set file = fso.CreateTextFile("w:\BoSeo\bingo.txt")
%>
<HTML>
<BODY>
<%
Dim strVar1, strVar2, i
strVar = Request.Form("item")
For i = 1 to len(strVar1)
Response.write mid(strVar,i,1) & "<BR>"
Next
For i = 1 to len(strVar2)
Response.write ucase(mid(strVar, i, 1)) & "-" "<BR>"
Next
%>
%>
</BODY>
</HTML>
1. Using he file system object, i want to write the name of this file to the screen the contents of this file look like
H
E
L
L
O
2. Using the contents of the file, i want to create a second file named bingo.txt. and write out the contents of this file so it looks like this
H-E-L-L-O
any help would be appreciated. thanks lots
|