|
xxx
Utility Belt:
FileWrite (to array) Demo
by Charles Carroll
The code below calls "Utility Belt" functions.
The Generate Update statement is one demo of Database "Utility Belt" functionality.
filename=/experiments/utilitybelt/vercurrent/ubdemo_FileWrite_array.aspx
<%@ debug="true" %>
<%@ Assembly src="utilitybelt.vb" %>
<script language="VB" runat="server">
dim ub1 as new learnasp.utilitybelt()
Sub Page_Load(S As Object, E As EventArgs)
ub1.Options("Debug-on,Xray-To-Page-On")
DIM arryTest as string()={"Line 1", "line 2", "Line 3", "line 4", "Line 5", "line 6"}
dim strFileName as string=request.PhysicalApplicationPath() & "data/test2.txt"
ub1.FileWrite(strFileName,arryTest)
ub1.Xray(arrytest,"arryTest from File named <b>" & strFileName & "</b>")
End Sub
</script>
<html><head>
<title>Utility Belt Demo</title></head>
<body bgcolor="#FFFFFF">
<form runat="server"></form>
</body></html>
|